added path managing functions

This commit is contained in:
Léana 江 2022-12-23 19:37:59 +01:00
parent 58753e4ad5
commit 8e94f7181c
3 changed files with 15 additions and 0 deletions

View file

@ -0,0 +1,8 @@
function removepath
if set -l index (contains -i $argv[1] $PATH)
set --erase --universal fish_user_paths[$index]
echo "Updated PATH: $PATH"
else
echo "$argv[1] not found in PATH: $PATH"
end
end