Manage your Java environment
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.
|
if [[ ! -o interactive ]]; then |
|
return |
|
fi |
|
|
|
compctl -S "" -K _jenv jenv |
|
|
|
_jenv() { |
|
local words completions |
|
read -cA words |
|
|
|
if [ "${#words[@]}" -eq 2 ]; then |
|
completions="$(jenv commands)" |
|
else |
|
completions="$(jenv completions ${words[2,-1]})" |
|
fi |
|
|
|
reply=("${(ps:\n:)completions}") |
|
}
|
|
|