Mercurial > dotfiles
comparison fish/config.fish @ 427:9a046e8fe5dd
Better way to figure out the OS in Fish.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Thu, 29 Mar 2018 12:56:11 -0700 |
parents | 350f7a55ff33 |
children | 4f6af3e668eb |
comparison
equal
deleted
inserted
replaced
426:67f14a8c2304 | 427:9a046e8fe5dd |
---|---|
1 | 1 |
2 # Environment variables {{{ | 2 # Environment variables {{{ |
3 | 3 |
4 set -x fish_greeting 'Hello.' | 4 set -x fish_greeting 'Hello.' |
5 | |
6 # Figure out the OS | |
7 switch (uname) | |
8 case Linux FreeBSD NetBSD DragonFly | |
9 set -x OS Linux | |
10 case Darwin | |
11 set -x OS MacOSX | |
12 case Windows_NT | |
13 set -x OS Windows_NT | |
14 case '*' | |
15 set -x OS Unknown | |
16 end | |
5 | 17 |
6 # My own stuff. | 18 # My own stuff. |
7 if test -d $HOME/.local/bin | 19 if test -d $HOME/.local/bin |
8 set -x PATH $HOME/.local/bin $PATH | 20 set -x PATH $HOME/.local/bin $PATH |
9 end | 21 end |
10 if test -d $HOME/bin | 22 if test -d $HOME/bin |
11 set -x PATH $HOME/bin $PATH | 23 set -x PATH $HOME/bin $PATH |
12 end | 24 end |
13 set -x OS MacOSX | 25 |
26 # Standard stuff. | |
14 set -x EDITOR vim | 27 set -x EDITOR vim |
15 #set -x TERM screen-256color-bce | 28 #set -x TERM screen-256color-bce |
16 | 29 |
17 # Python. | 30 # Python. |
18 set -x VIRTUAL_ENV_DISABLE_PROMPT 1 | 31 set -x VIRTUAL_ENV_DISABLE_PROMPT 1 |