Source the zsh autocompletion script in rbenv-init

This commit is contained in:
Sam Stephenson 2011-08-16 00:13:12 -05:00
parent 3cd08f7c09
commit b45bce80ca
2 changed files with 5 additions and 3 deletions

View file

@ -55,8 +55,10 @@ mkdir -p "${HOME}/.rbenv/"{shims,versions}
echo 'export PATH="${HOME}/.rbenv/shims:${PATH}"' echo 'export PATH="${HOME}/.rbenv/shims:${PATH}"'
if [ "$shell" = "bash" ]; then case "$shell" in
echo "source \"$root/completions/rbenv.bash\"" bash | zsh )
fi echo "source \"$root/completions/rbenv.${shell}\""
;;
esac
echo 'rbenv rehash 2>/dev/null' echo 'rbenv rehash 2>/dev/null'