Skip to content

Commit

Permalink
improve detection of completion support for commands
Browse files Browse the repository at this point in the history
Enable JavasCript, Lua and Erlang scripts to provide completions
  • Loading branch information
Alisdair Sullivan authored and mislav committed Apr 1, 2013
1 parent 4d96d0a commit 497911d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libexec/rbenv-completions
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 497911d

Please sign in to comment.