From d6d4c5deafd4d51aca95694c111aa21aab209a92 Mon Sep 17 00:00:00 2001 From: Jorge Bucaran Date: Fri, 20 May 2016 08:19:27 +0900 Subject: [PATCH] Update plugins if given full original name or url. Fix #290. --- fisher.fish | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/fisher.fish b/fisher.fish index 0371e18..6e24d09 100644 --- a/fisher.fish +++ b/fisher.fish @@ -604,19 +604,20 @@ function __fisher_update end for i in $argv - set -l path "$fisher_config/$i" + set -l name (__fisher_plugin_get_names "$i")[1] + set -l path "$fisher_config/$name" if test -d "$path" - set updated $updated "$i" + set updated $updated "$name" - if test -L "$fisher_config/$i" + if test -L "$fisher_config/$name" set links (math "$links + 1") continue end - set jobs $jobs (__fisher_update_path_async "$i" "$path") + set jobs $jobs (__fisher_update_path_async "$name" "$path") else - __fisher_log error "Skipped @$i@" + __fisher_log error "Skipped @$name@" end end