ソースを参照

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年前
コミット
4159055117
1個のファイルの変更1行の追加1行の削除
  1. +1
    -1
      completions/pyenv.zsh

+ 1
- 1
completions/pyenv.zsh ファイルの表示

@ -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}")

読み込み中…
キャンセル
保存