From cbf73e82b040d0c808df1e908c2f9764b5a28490 Mon Sep 17 00:00:00 2001 From: Jorge Bucaran Date: Wed, 17 Feb 2016 13:58:13 +0900 Subject: [PATCH] Teach __fisher_plugin_disable any uninstall options, e.g, --force. --- functions/__fisher_plugin_disable.fish | 4 ++-- functions/fisher_uninstall.fish | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/functions/__fisher_plugin_disable.fish b/functions/__fisher_plugin_disable.fish index af3a6e9..f9d5bf7 100644 --- a/functions/__fisher_plugin_disable.fish +++ b/functions/__fisher_plugin_disable.fish @@ -1,4 +1,4 @@ -function __fisher_plugin_disable -a plugin path +function __fisher_plugin_disable -a plugin path option __fisher_plugin_walk "$plugin" "$path" | while read -l class source target name switch "$class" case --bind @@ -6,7 +6,7 @@ function __fisher_plugin_disable -a plugin path )/fish/functions/fish_user_key_bindings.fish case --uninstall - __fisher_plugin_uninstall_handler $plugin $source + __fisher_plugin_uninstall_handler $plugin $source "$option" case \* __fisher_plugin_unlink $name $fisher_config/$target diff --git a/functions/fisher_uninstall.fish b/functions/fisher_uninstall.fish index 392e84b..59ca627 100644 --- a/functions/fisher_uninstall.fish +++ b/functions/fisher_uninstall.fish @@ -78,7 +78,7 @@ function fisher_uninstall -d "Uninstall Plugins" end if __fisher_plugin_can_enable "$name" "$path" - __fisher_plugin_disable "$name" "$path" + __fisher_plugin_disable "$name" "$path" "$option" end if test "$option" = force