mirror of
https://github.com/jorgebucaran/fisher
synced 2024-09-10 15:07:40 +02:00
Do not rewrite fishfile in ls or ls-remote.
This commit is contained in:
parent
b32442f480
commit
ea34626b40
1 changed files with 8 additions and 4 deletions
|
@ -273,11 +273,15 @@ function fisher
|
||||||
complete -xc fisher -n "__fish_seen_subcommand_from l ls list u up update r rm remove uninstall" -a "$fisher_active_prompt" -d "Prompt"
|
complete -xc fisher -n "__fish_seen_subcommand_from l ls list u up update r rm remove uninstall" -a "$fisher_active_prompt" -d "Prompt"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
switch "$cmd"
|
||||||
|
case ls ls-remote
|
||||||
|
case \*
|
||||||
if test -z "$config"
|
if test -z "$config"
|
||||||
echo > $fisher_bundle
|
echo > $fisher_bundle
|
||||||
else
|
else
|
||||||
__fisher_plugin_get_url_info -- $config > $fisher_bundle
|
__fisher_plugin_get_url_info -- $config > $fisher_bundle
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
if test ! -z "$cache"
|
if test ! -z "$cache"
|
||||||
printf "%s\n" $cache | command awk -v config="$config" '
|
printf "%s\n" $cache | command awk -v config="$config" '
|
||||||
|
|
Loading…
Reference in a new issue