diff --git a/cli/fish/config.fish b/cli/fish/config.fish index 8edf169..2f1fbd9 100644 --- a/cli/fish/config.fish +++ b/cli/fish/config.fish @@ -53,7 +53,7 @@ if status is-interactive alias dt='date "+%Y%m%d-%H%M%S"' # === PATH and file sourcing - append_paths ~/.yarn/bin + append_paths ~/.yarn/bin ~/dotfiles/bin source_files /usr/share/autojump/autojump.fish /usr/local/share/autojump/autojump.fish \ ~/.profile.fish diff --git a/cli/fish/functions/append_paths.fish b/cli/fish/functions/append_paths.fish index 67aa141..58e8c12 100644 --- a/cli/fish/functions/append_paths.fish +++ b/cli/fish/functions/append_paths.fish @@ -1,6 +1,6 @@ function append_paths for f in $argv - test -e $f && set -gx PATH $f $PATH + test -e $f && ! contains $f $PATH && set -gx PATH $f $PATH end end