Przeglądaj źródła

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 9 lat temu
committed by GitHub
rodzic
commit
e09d61780c
1 zmienionych plików z 2 dodań i 1 usunięć
  1. +2
    -1
      completions/pyenv.fish

+ 2
- 1
completions/pyenv.fish Wyświetl plik

@ -18,5 +18,6 @@ end
complete -f -c pyenv -n '__fish_pyenv_needs_command' -a '(pyenv commands)' complete -f -c pyenv -n '__fish_pyenv_needs_command' -a '(pyenv commands)'
for cmd in (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 end

Ładowanie…
Anuluj
Zapisz