From 8dd2c409cd744a0fdd707b8bb68fabc73ada0bba Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Thu, 10 Nov 2016 20:58:38 +0100 Subject: fish: build up PATH before doing anything else --- config/fish/config.fish | 46 +++++++++++++++++++++++----------------------- 1 file changed, 23 insertions(+), 23 deletions(-) (limited to 'config/fish') 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 -- cgit v1.2.3