mirror of
				https://tildegit.org/ben/dotfiles.git
				synced 2025-08-10 05:02:03 +00:00 
			
		
		
		
	fix dups in $PATH with a backwards compatible solution
This commit is contained in:
		
							parent
							
								
									1662945d9c
								
							
						
					
					
						commit
						bcb5298353
					
				@ -16,9 +16,9 @@ if test -d /usr/local/go
 | 
				
			|||||||
  set -x GOPATH (/usr/local/go/bin/go env GOPATH)
 | 
					  set -x GOPATH (/usr/local/go/bin/go env GOPATH)
 | 
				
			||||||
end
 | 
					end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
set user_paths ~/bin /usr/local/go/bin ~/.yarn/bin $GOPATH/bin ~/.local/bin ~/.cargo/bin /snap/bin ~/.fzf/bin
 | 
					set my_paths ~/bin /usr/local/go/bin ~/.yarn/bin $GOPATH/bin ~/.local/bin ~/.cargo/bin /snap/bin ~/.fzf/bin
 | 
				
			||||||
for path in $user_paths
 | 
					for path in $my_paths
 | 
				
			||||||
  if test -d $path; and not echo $fish_user_paths | grep -q "$path"
 | 
					  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
 | 
					    set -x fish_user_paths $fish_user_paths $path
 | 
				
			||||||
  end
 | 
					  end
 | 
				
			||||||
end
 | 
					end
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user