소스 검색

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 년 전
committed by GitHub
부모
커밋
e09d61780c
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. +2
    -1
      completions/pyenv.fish

+ 2
- 1
completions/pyenv.fish 파일 보기

@ -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

불러오는 중...
취소
저장