mirror of
https://github.com/rbenv/ruby-build.git
synced 2024-12-29 13:15:33 +01:00
Autocompletion
This commit is contained in:
parent
7b4b51a79e
commit
f47e74aa44
1 changed files with 5 additions and 0 deletions
|
@ -2,6 +2,11 @@
|
|||
set -e
|
||||
[ -n "$RBENV_DEBUG" ] && set -x
|
||||
|
||||
# Provide rbenv completions
|
||||
if [ "$1" = "--complete" ]; then
|
||||
exec ruby-build --definitions
|
||||
fi
|
||||
|
||||
if [ -z "$RBENV_ROOT" ]; then
|
||||
RBENV_ROOT="${HOME}/.rbenv"
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue