about summary refs log tree commit diff
path: root/fish/.config
diff options
context:
space:
mode:
Diffstat (limited to 'fish/.config')
-rwxr-xr-xfish/.config/fish/config.fish6
1 files changed, 3 insertions, 3 deletions
diff --git a/fish/.config/fish/config.fish b/fish/.config/fish/config.fish
index a04be7a..b1baa18 100755
--- a/fish/.config/fish/config.fish
+++ b/fish/.config/fish/config.fish
@@ -16,9 +16,9 @@ if test -d /usr/local/go
   set -x GOPATH (/usr/local/go/bin/go env GOPATH)
 end
 
-set user_paths ~/bin /usr/local/go/bin ~/.yarn/bin $GOPATH/bin ~/.local/bin ~/.cargo/bin /snap/bin ~/.fzf/bin
-for path in $user_paths
-  if test -d $path; and not echo $fish_user_paths | grep -q "$path"
+set my_paths ~/bin /usr/local/go/bin ~/.yarn/bin $GOPATH/bin ~/.local/bin ~/.cargo/bin /snap/bin ~/.fzf/bin
+for path in $my_paths
+  if test -d $path; and not echo $fish_user_paths | grep -q "$path"; and not echo $PATH | grep -q "$path"
     set -x fish_user_paths $fish_user_paths $path
   end
 end