.files/nix/homeModules/common/fish/functions/fish_remove_path.fish

8 lines
231 B
Fish

# 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