dotfiles/cli/fish/functions/append_paths.fish
2021-01-17 11:48:41 +08:00

7 lines
121 B
Fish

function append_paths
for f in $argv
test -e $f && ! contains $f $PATH && set -gx PATH $f $PATH
end
end