Update plugins on install if they are already installed, close #599

pull/627/head
Jorge Bucaran 4 years ago
parent 3077649891
commit f97dc3b47d
No known key found for this signature in database
GPG Key ID: E54BA3C0E646DB30

@ -67,9 +67,7 @@ function fisher -a cmd -d "fish plugin manager"
else
for plugin in (_fisher_plugin_parse $argv[2..-1])
if contains -- "$plugin" $old_plugins
if test "$cmd" = install
echo "fisher: \"$plugin\" is already installed (try `fisher update $plugin`)" >&2 && return 1
else if test "$cmd" = update
if test "$cmd" = install || test "$cmd" = update
set -a update_plugins $plugin
else
set -a remove_plugins $plugin

Loading…
Cancel
Save