fixed a lot of stuff
This commit is contained in:
@@ -1,5 +1,12 @@
|
||||
function addpaths
|
||||
contains -- $argv $fish_user_paths
|
||||
or set -U fish_user_paths $fish_user_paths $argv
|
||||
if test (count $argv) -lt 1
|
||||
echo "Usage: addpaths <path> [more paths...]"
|
||||
return 1
|
||||
end
|
||||
for p in $argv
|
||||
if not contains -- $p $fish_user_paths
|
||||
fish_add_path -U $p
|
||||
end
|
||||
end
|
||||
echo "Updated PATH: $PATH"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user