Parcourir la source

Extract rbenv-shims

pull/360/head^2
Sam Stephenson il y a 15 ans
Parent
révision
61830048d5
2 fichiers modifiés avec 18 ajouts et 4 suppressions
  1. +1
    -4
      libexec/rbenv-exec
  2. +17
    -0
      libexec/rbenv-shims

+ 1
- 4
libexec/rbenv-exec Voir le fichier

@ -4,10 +4,7 @@ set -e
# Provide rbenv completions
if [ "$1" = "--complete" ]; then
for command in "${RBENV_ROOT}/shims/"*; do
echo "${command##*/}"
done
exit
exec rbenv shims --short
fi
RBENV_COMMAND="$1"

+ 17
- 0
libexec/rbenv-shims Voir le fichier

@ -0,0 +1,17 @@
#!/usr/bin/env bash
set -e
[ -n "$RBENV_DEBUG" ] && set -x
# Provide rbenv completions
if [ "$1" = "--complete" ]; then
echo --short
exit
fi
for command in "${RBENV_ROOT}/shims/"*; do
if [ "$1" = "--short" ]; then
echo "${command##*/}"
else
echo "$command"
fi
done | sort

Chargement…
Annuler
Enregistrer