diff --git a/nix/homeModules/common/fish/functions/fish_remove_path.fish b/nix/homeModules/common/fish/functions/fish_remove_path.fish new file mode 100644 index 00000000..b30007fa --- /dev/null +++ b/nix/homeModules/common/fish/functions/fish_remove_path.fish @@ -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