From 4159055117e7f4842a0f0b78d41b0a54e7255ff1 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Sun, 10 Aug 2014 17:04:26 +0200 Subject: [PATCH] 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. --- completions/pyenv.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/completions/pyenv.zsh b/completions/pyenv.zsh index 65cc42fe..67dc41db 100644 --- a/completions/pyenv.zsh +++ b/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}")