Autocompletion

This commit is contained in:
Sam Stephenson 2011-09-13 13:16:03 -05:00
parent 7b4b51a79e
commit f47e74aa44

View file

@ -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