fish: fish_remove_path function

This commit is contained in:
Primrose 2025-05-11 22:43:35 +02:00
parent c60be15228
commit 54b7d1290a
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA

View file

@ -0,0 +1,8 @@
# source: https://github.com/fish-shell/fish-shell/issues/8604
function fish_remove_path
if set -l index (contains -i "$argv" $fish_user_paths)
set -e fish_user_paths[$index]
echo "Removed $argv from the path"
end
end