Do not update the index when performing ls-remote completions.

This commit is contained in:
Jorge Bucaran 2016-04-29 22:39:36 +09:00
parent dc80ea96ba
commit 69bbcb0449
No known key found for this signature in database
GPG key ID: E54BA3C0E646DB30

View file

@ -295,13 +295,12 @@ function fisher
end end
end end
if test -s "$fisher_cache/.index"
__fisher_list_remote_complete __fisher_list_remote_complete
end
return 0 source "$completions"
end end
function __fisher_install function __fisher_install
if test -z "$argv" if test -z "$argv"
__fisher_read_bundle_file | read -az argv __fisher_read_bundle_file | read -az 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