|
|
|
@ -9,9 +9,7 @@ _jenv() { |
|
|
|
unset words[0] |
|
|
|
unset words[0] |
|
|
|
local completions=$(jenv completions "${words[@]}") |
|
|
|
local completions=$(jenv completions "${words[@]}") |
|
|
|
COMPREPLY=( $(compgen -W "$completions" -- "$word") ) |
|
|
|
COMPREPLY=( $(compgen -W "$completions" -- "$word") ) |
|
|
|
# Prevents the addition of a trailing space when completing a path |
|
|
|
|
|
|
|
[[ $COMPREPLY = */ ]] && complete -o nospace |
|
|
|
|
|
|
|
fi |
|
|
|
fi |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
complete -F _jenv jenv |
|
|
|
complete -o nospace -F _jenv jenv |
|
|
|
|