1
0
mirror of https://github.com/pyenv/pyenv.git synced 2025-11-13 13:53:53 -05:00

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}"'
if [ "$shell" = "bash" ]; then
echo "source \"$root/completions/rbenv.bash\""
fi
case "$shell" in
bash | zsh )
echo "source \"$root/completions/rbenv.${shell}\""
;;
esac
echo 'rbenv rehash 2>/dev/null'