From 37076cacbfaab78905bfd1393bd3c9d9bfc65062 Mon Sep 17 00:00:00 2001 From: Bas van den Wollenberg Date: Tue, 9 Dec 2025 18:03:07 +0100 Subject: [PATCH] update fish_remove_path to use fish_remove_list --- fish/.config/fish/functions/fish_remove_path.fish | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/fish/.config/fish/functions/fish_remove_path.fish b/fish/.config/fish/functions/fish_remove_path.fish index 7cdc60a..9c8b49e 100644 --- a/fish/.config/fish/functions/fish_remove_path.fish +++ b/fish/.config/fish/functions/fish_remove_path.fish @@ -1,6 +1,3 @@ -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 +function fish_remove_path --description 'Remove an item from $fish_user_paths' + fish_remove_list fish_user_paths $argv end -- 2.51.2