init - bash its automatically load auto-completion

This commit is contained in:
Septian Dwic
2018-11-21 02:05:19 +07:00
parent 8feebc0aa9
commit 310ee837c9
5 changed files with 8 additions and 22 deletions

View File

@@ -4,12 +4,9 @@ about-plugin 'load pyenv, if you are using it'
export PYENV_ROOT="$HOME/.pyenv"
pathmunge "$PYENV_ROOT/bin"
[[ `which pyenv` ]] && eval "$(pyenv init -)"
[[ `which pyenv` ]] && eval "$(pyenv init - bash)"
#Load pyenv virtualenv if the virtualenv plugin is installed.
if pyenv virtualenv-init - &> /dev/null; then
eval "$(pyenv virtualenv-init -)"
eval "$(pyenv virtualenv-init - bash)"
fi
# Load the auto-completion script if pyenv was loaded.
[[ -e $PYENV_ROOT/completions/pyenv.bash ]] && source $PYENV_ROOT/completions/pyenv.bash