mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-07 20:31:01 -05:00
improve detection of completion support for commands
Enable JavasCript, Lua and Erlang scripts to provide completions
This commit is contained in:
parent
4d96d0a6c6
commit
497911d6c0
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ if [ -z "$COMMAND" ]; then
|
|||
fi
|
||||
|
||||
COMMAND_PATH="$(command -v "rbenv-$COMMAND" || command -v "rbenv-sh-$COMMAND")"
|
||||
if grep -i "^# provide rbenv completions" "$COMMAND_PATH" >/dev/null; then
|
||||
if grep -i "^\([#%]\|--\|//\) provide rbenv completions" "$COMMAND_PATH" >/dev/null; then
|
||||
shift
|
||||
exec "$COMMAND_PATH" --complete "$@"
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue