From 305db1c35ba426257378ea64e1057b11350043cf Mon Sep 17 00:00:00 2001 From: Sam Stephenson Date: Fri, 16 Sep 2011 14:18:29 -0500 Subject: [PATCH] Fix rbenv-completions for shell commands. Closes #90. --- libexec/rbenv-completions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libexec/rbenv-completions b/libexec/rbenv-completions index e83690dc..4bc21a3c 100755 --- a/libexec/rbenv-completions +++ b/libexec/rbenv-completions @@ -8,7 +8,7 @@ if [ -z "$COMMAND" ]; then exit 1 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 shift exec "$COMMAND_PATH" --complete "$@"