mirror of https://github.com/jenv/jenv.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
316 B
19 lines
316 B
if [[ ! -o interactive ]]; then |
|
return |
|
fi |
|
|
|
compctl -K _jenv jenv |
|
|
|
_jenv() { |
|
local word words completions |
|
read -cA words |
|
word="${words[2]}" |
|
|
|
if [ "${#words}" -eq 2 ]; then |
|
completions="$(jenv commands)" |
|
else |
|
completions="$(jenv completions "${word}")" |
|
fi |
|
|
|
reply=("${(ps:\n:)completions}") |
|
}
|
|
|