mirror of
https://github.com/jorgebucaran/fisher
synced 2024-10-09 09:36:53 +02:00
Do not update the index when performing ls-remote completions.
This commit is contained in:
parent
67b981166c
commit
f8390474be
1 changed files with 12 additions and 6 deletions
14
fisher.fish
14
fisher.fish
|
@ -295,12 +295,11 @@ function fisher
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if test -s "$fisher_cache/.index"
|
|
||||||
__fisher_list_remote_complete
|
__fisher_list_remote_complete
|
||||||
|
|
||||||
|
source "$completions"
|
||||||
end
|
end
|
||||||
|
|
||||||
return 0
|
|
||||||
end
|
|
||||||
|
|
||||||
function __fisher_install
|
function __fisher_install
|
||||||
if test -z "$argv"
|
if test -z "$argv"
|
||||||
|
@ -938,7 +937,14 @@ end
|
||||||
function __fisher_list_remote_complete
|
function __fisher_list_remote_complete
|
||||||
set -l IFS \t
|
set -l IFS \t
|
||||||
|
|
||||||
__fisher_list_remote "%name\t%info\n" | while read -l name info
|
command awk -v FS=\t -v OFS=\t '
|
||||||
|
|
||||||
|
{
|
||||||
|
print($1, $2)
|
||||||
|
}
|
||||||
|
|
||||||
|
' "$fisher_cache/.index" ^ /dev/null | while read -l name info
|
||||||
|
|
||||||
complete -xc fisher -n "__fish_seen_subcommand_from info ls-remote" -a "$name" -d "$info"
|
complete -xc fisher -n "__fish_seen_subcommand_from info ls-remote" -a "$name" -d "$info"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue