fixed a lot of stuff
This commit is contained in:
@@ -1,8 +1,12 @@
|
||||
function removepath
|
||||
if test (count $argv) -lt 1
|
||||
echo "Usage: removepath <path>"
|
||||
return 1
|
||||
end
|
||||
if set -l index (contains -i $argv[1] $PATH)
|
||||
set --erase --universal fish_user_paths[$index]
|
||||
echo "Updated PATH: $PATH"
|
||||
echo "Removed '$argv[1]' from PATH."
|
||||
else
|
||||
echo "$argv[1] not found in PATH: $PATH"
|
||||
echo "'$argv[1]' not found in PATH."
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user