|
|
@ -70,14 +70,17 @@ echo 'rbenv rehash 2>/dev/null' |
|
|
commands=(`rbenv commands --sh`) |
|
|
commands=(`rbenv commands --sh`) |
|
|
IFS="|" |
|
|
IFS="|" |
|
|
cat <<EOS |
|
|
cat <<EOS |
|
|
function rbenv () { |
|
|
|
|
|
command="\$1"; |
|
|
|
|
|
shift; |
|
|
|
|
|
|
|
|
function rbenv() { |
|
|
|
|
|
command="\$1" |
|
|
|
|
|
if [ "\$#" -gt 0 ]; then |
|
|
|
|
|
shift |
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
case "\$command" in |
|
|
case "\$command" in |
|
|
${commands[*]}) |
|
|
${commands[*]}) |
|
|
eval \`rbenv "sh-\$command" "\$@"\`;; |
|
|
eval \`rbenv "sh-\$command" "\$@"\`;; |
|
|
*) |
|
|
*) |
|
|
command rbenv "\$command" "\$@";; |
|
|
command rbenv "\$command" "\$@";; |
|
|
esac; |
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
esac |
|
|
|
|
|
} |
|
|
EOS |
|
|
EOS |