mirror of
https://github.com/jorgebucaran/fisher
synced 2024-10-09 09:36:53 +02:00
Teach __fisher_plugin_disable any uninstall options, e.g, --force.
This commit is contained in:
parent
415487dfc9
commit
cbf73e82b0
2 changed files with 3 additions and 3 deletions
|
@ -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
|
__fisher_plugin_walk "$plugin" "$path" | while read -l class source target name
|
||||||
switch "$class"
|
switch "$class"
|
||||||
case --bind
|
case --bind
|
||||||
|
@ -6,7 +6,7 @@ function __fisher_plugin_disable -a plugin path
|
||||||
)/fish/functions/fish_user_key_bindings.fish
|
)/fish/functions/fish_user_key_bindings.fish
|
||||||
|
|
||||||
case --uninstall
|
case --uninstall
|
||||||
__fisher_plugin_uninstall_handler $plugin $source
|
__fisher_plugin_uninstall_handler $plugin $source "$option"
|
||||||
|
|
||||||
case \*
|
case \*
|
||||||
__fisher_plugin_unlink $name $fisher_config/$target
|
__fisher_plugin_unlink $name $fisher_config/$target
|
||||||
|
|
|
@ -78,7 +78,7 @@ function fisher_uninstall -d "Uninstall Plugins"
|
||||||
end
|
end
|
||||||
|
|
||||||
if __fisher_plugin_can_enable "$name" "$path"
|
if __fisher_plugin_can_enable "$name" "$path"
|
||||||
__fisher_plugin_disable "$name" "$path"
|
__fisher_plugin_disable "$name" "$path" "$option"
|
||||||
end
|
end
|
||||||
|
|
||||||
if test "$option" = force
|
if test "$option" = force
|
||||||
|
|
Loading…
Reference in a new issue