Completion for commands

This commit is contained in:
Sam Stephenson 2011-09-13 12:48:49 -05:00
parent 4923838981
commit 69d596f56f

View file

@ -2,12 +2,16 @@
set -e set -e
[ -n "$RBENV_DEBUG" ] && set -x [ -n "$RBENV_DEBUG" ] && set -x
# Provide rbenv completions
if [ "$1" = "--complete" ]; then
echo --sh --no-sh
exit
fi
if [ "$1" = "--sh" ]; then if [ "$1" = "--sh" ]; then
sh=1 sh=1
shift shift
fi elif [ "$1" = "--no-sh" ]; then
if [ "$1" = "--no-sh" ]; then
nosh=1 nosh=1
shift shift
fi fi