We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bf53f3a commit 25e4132Copy full SHA for 25e4132
.zsh/pyenv.zsh
@@ -0,0 +1,18 @@
1
+if [[ ! -o interactive ]]; then
2
+ return
3
+fi
4
+
5
+compctl -K _pyenv pyenv
6
7
+_pyenv() {
8
+ local words completions
9
+ read -cA words
10
11
+ if [ "${#words}" -eq 2 ]; then
12
+ completions="$(pyenv commands)"
13
+ else
14
+ completions="$(pyenv completions ${words[2,-2]})"
15
+ fi
16
17
+ reply=(${(ps:\n:)completions})
18
+}
.zshrc
@@ -165,3 +165,5 @@ complete -C '/usr/bin/aws_completer' aws
165
# -*- k3d completion for zsh -*-
166
[[ ! -f ~/.zsh/k3d.zsh ]] || source ~/.zsh/k3d.zsh
167
168
+# -*- pyenv command completion for zsh -*-
169
+[[ ! -f ~/.zsh/pyenv.zsh ]] || source ~/.zsh/pyenv.zsh
0 commit comments