Przeglądaj źródła

Extract rbenv-shims

pull/360/head^2
Sam Stephenson 15 lat temu
rodzic
commit
61830048d5
2 zmienionych plików z 18 dodań i 4 usunięć
  1. +1
    -4
      libexec/rbenv-exec
  2. +17
    -0
      libexec/rbenv-shims

+ 1
- 4
libexec/rbenv-exec Wyświetl plik

@ -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 Wyświetl plik

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

Ładowanie…
Anuluj
Zapisz