Browse Source

Completion for exec

pull/360/head^2
Sam Stephenson 15 years ago
parent
commit
4923838981
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      libexec/rbenv-exec

+ 8
- 0
libexec/rbenv-exec View File

@ -2,6 +2,14 @@
set -e
[ -n "$RBENV_DEBUG" ] && set -x
# Provide rbenv completions
if [ "$1" = "--complete" ]; then
for command in "${RBENV_ROOT}/shims/"*; do
echo "${command##*/}"
done
exit
fi
RBENV_COMMAND="$1"
if [ -z "$RBENV_COMMAND" ]; then
echo "usage: rbenv exec COMMAND [arg1 arg2...]" >&2

Loading…
Cancel
Save