fixed a lot of stuff

This commit is contained in:
Honney
2026-06-23 00:23:16 +02:00
parent 74f4b9b1be
commit 6591f6b020
24 changed files with 626 additions and 455 deletions
+6 -2
View File
@@ -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