Fix rbenv-completions for shell commands. Closes #90.

This commit is contained in:
Sam Stephenson 2011-09-16 14:18:29 -05:00
parent 568cd4b23e
commit 305db1c35b

View file

@ -8,7 +8,7 @@ if [ -z "$COMMAND" ]; then
exit 1 exit 1
fi fi
COMMAND_PATH="$(command -v "rbenv-$COMMAND")" 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 shift
exec "$COMMAND_PATH" --complete "$@" exec "$COMMAND_PATH" --complete "$@"