From 0a371507fef5ba73139cb238e62760b297c618e9 Mon Sep 17 00:00:00 2001 From: Jorge Bucaran Date: Sun, 8 May 2016 06:24:40 +0900 Subject: [PATCH] Do not add local plugins to fishfile. --- fisher.fish | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/fisher.fish b/fisher.fish index 2456746..d0c94f3 100644 --- a/fisher.fish +++ b/fisher.fish @@ -306,7 +306,11 @@ function fisher end set -l config_glob $fisher_config/* - set -l config (printf "%s\n" $config_glob | command sed "s|.*/||") + set -l config ( + if test ! -z "$config_glob" + command find $config_glob -maxdepth 0 -type d | command sed "s|.*/||" + end + ) switch "$cmd" case ls ls-remote @@ -1415,7 +1419,7 @@ function __fisher_plugin_get_url_info -a option return end - cat {$argv}/.git/config ^ /dev/null | command awk -v option="$option" ' + command cat {$argv}/.git/config ^ /dev/null | command awk -v option="$option" ' /url/ { n = split($3, s, "/")