Procházet zdrojové kódy

Fix fish subcommand completion

This allows subcommand style plugins to properly autocomplete.
Existing commands are not affected. 

Example, say you have support for `pyenv foo bar --flag`, then
this allows the last `--flag` argument to be properly completed.
pull/831/head
Max Nordlund před 9 roky
odevzdal GitHub
rodič
revize
e09d61780c
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. +2
    -1
      completions/pyenv.fish

+ 2
- 1
completions/pyenv.fish Zobrazit soubor

@ -18,5 +18,6 @@ end
complete -f -c pyenv -n '__fish_pyenv_needs_command' -a '(pyenv commands)'
for cmd in (pyenv commands)
complete -f -c pyenv -n "__fish_pyenv_using_command $cmd" -a "(pyenv completions $cmd)"
complete -f -c pyenv -n "__fish_pyenv_using_command $cmd" -a \
"(pyenv completions (commandline -opc)[2..-1])"
end

Načítá se…
Zrušit
Uložit