Do not add local plugins to fishfile.

This commit is contained in:
Jorge Bucaran 2016-05-08 06:24:40 +09:00
parent 04b4f8c134
commit 0a371507fe
No known key found for this signature in database
GPG key ID: E54BA3C0E646DB30

View file

@ -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, "/")