Parcourir la source

Define lightweight rbenv shell function to dispatch commands

pull/360/head^2
Joshua Peek il y a 15 ans
Parent
révision
f9225d9cb4
1 fichiers modifiés avec 15 ajouts et 0 suppressions
  1. +15
    -0
      libexec/rbenv-init

+ 15
- 0
libexec/rbenv-init Voir le fichier

@ -66,3 +66,18 @@ bash | zsh )
esac
echo 'rbenv rehash 2>/dev/null'
commands=(`rbenv commands --sh`)
IFS="|"
cat <<EOS
function rbenv () {
command=\$1;
shift;
case \$command in
${commands[*]})
eval \`rbenv sh-\$command \$@\`;;
*)
command rbenv \$command \$@;;
esac;
};
EOS

Chargement…
Annuler
Enregistrer