mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-21 20:47:00 -05:00
Fix rbenv-completions for shell commands. Closes #90.
This commit is contained in:
parent
568cd4b23e
commit
305db1c35b
1 changed files with 1 additions and 1 deletions
|
@ -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 "$@"
|
||||||
|
|
Loading…
Reference in a new issue