mirror of
https://github.com/rbenv/ruby-build.git
synced 2025-01-01 14:44:48 +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
|
set -e
|
||||||
[ -n "$RBENV_DEBUG" ] && set -x
|
[ -n "$RBENV_DEBUG" ] && set -x
|
||||||
|
|
||||||
|
# Provide rbenv completions
|
||||||
|
if [ "$1" = "--complete" ]; then
|
||||||
|
exec ruby-build --definitions
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -z "$RBENV_ROOT" ]; then
|
if [ -z "$RBENV_ROOT" ]; then
|
||||||
RBENV_ROOT="${HOME}/.rbenv"
|
RBENV_ROOT="${HOME}/.rbenv"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue