Deze website werkt beter met JavaScript.
Beginscherm
Verkennen
Help
Inloggen
isprogram
/
pyenv
kopie van
https://github.com/pyenv/pyenv.git
Volgen
1
Ster
0
Vork
0
Code
Kwesties
0
Projects
0
Publicaties
241
Wiki
Activiteit
Bladeren bron
Extract rbenv-shims
pull/360/head^2
Sam Stephenson
15 jaren geleden
bovenliggende
69d596f56f
commit
61830048d5
2 gewijzigde bestanden
met
toevoegingen van 18
en
4 verwijderingen
Zij-aan-zij weergave
Diff opties
Statistieken weergeven
Download Patch-bestand
Download Diff-bestand
+1
-4
libexec/rbenv-exec
+17
-0
libexec/rbenv-shims
+ 1
- 4
libexec/rbenv-exec
Bestand weergeven
@ -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
Bestand weergeven
@ -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
Schrijf
Voorbeeld
Laden…
Annuleren
Opslaan