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

check if completion script is readable

fixes #444
This commit is contained in:
Mislav Marohnić
2013-09-09 09:53:29 +02:00
parent 749f21e482
commit bdcc2e1790
2 changed files with 3 additions and 6 deletions

View File

@@ -83,11 +83,8 @@ if [[ ":${PATH}:" != *:"${RBENV_ROOT}/shims":* ]]; then
echo 'export PATH="'${RBENV_ROOT}'/shims:${PATH}"'
fi
case "$shell" in
bash | zsh )
echo "source \"$root/completions/rbenv.${shell}\""
;;
esac
completion="${root}/completions/rbenv.${shell}"
[ -r "$completion" ] && echo "source '$completion'"
if [ -z "$no_rehash" ]; then
echo 'rbenv rehash 2>/dev/null'