diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2016-11-10 20:58:38 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2016-11-10 20:58:38 +0100 |
| commit | 8dd2c409cd744a0fdd707b8bb68fabc73ada0bba (patch) | |
| tree | 50a284b93c845057233d996de614749b42ecc12a | |
| parent | f7a3c8719dbaca325cb2b7c4cb2fffc2d98c3dc0 (diff) | |
| download | dotfiles-8dd2c409cd744a0fdd707b8bb68fabc73ada0bba.tar.gz dotfiles-8dd2c409cd744a0fdd707b8bb68fabc73ada0bba.zip | |
fish: build up PATH before doing anything else
| -rw-r--r-- | config/fish/config.fish | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/config/fish/config.fish b/config/fish/config.fish index 8861af6..fde80d3 100644 --- a/config/fish/config.fish +++ b/config/fish/config.fish @@ -1,7 +1,29 @@ +# PATH Stuff + +# include cargo binaries +if type -q multirust + for p in $HOME/.multirust/toolchains/*/cargo/bin + if not contains $p $PATH + set PATH $PATH $p + end + end +end + +if not contains /bin/core_perl $PATH + set PATH /bin/core_perl $PATH +end + +if not contains ~/.local/bin $PATH + set PATH ~/.local/bin $PATH +end + +if not contains /usr/local/bin $PATH + set PATH /usr/local/bin $PATH +end + # export the path to our dotfiles set -x DOTFILES_LOCATION (get_dotfiles_location) - # autoload functions and completions in .dotfiles set fish_function_path $DOTFILES_LOCATION/config/fish/functions $fish_function_path set fish_complete_path $DOTFILES_LOCATION/config/fish/completions $fish_complete_path @@ -37,25 +59,3 @@ if type -q yaourt end end -# PATH Stuff - -# include cargo binaries -if type -q multirust - for p in $HOME/.multirust/toolchains/*/cargo/bin - if not contains $p $PATH - set PATH $PATH $p - end - end -end - -if not contains /bin/core_perl $PATH - set PATH /bin/core_perl $PATH -end - -if not contains ~/.local/bin $PATH - set PATH ~/.local/bin $PATH -end - -if not contains /usr/local/bin $PATH - set PATH /usr/local/bin $PATH -end |
