Sfoglia il codice sorgente

Fix zsh completion with multiple words

`${words[2,-2]}` must not be quoted, otherwise completion for multiple
words (e.g. `shell 3.4.1`) fails.
pull/215/head
Daniel Hahler 12 anni fa
parent
commit
4159055117
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      completions/pyenv.zsh

+ 1
- 1
completions/pyenv.zsh Vedi File

@ -11,7 +11,7 @@ _pyenv() {
if [ "${#words}" -eq 2 ]; then
completions="$(pyenv commands)"
else
completions="$(pyenv completions "${words[2,-2]}")"
completions="$(pyenv completions ${words[2,-2]})"
fi
reply=("${(ps:\n:)completions}")

Caricamento…
Annulla
Salva