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,7 +4,4 @@ about-plugin 'load rbenv, if you are using it'
export RBENV_ROOT="$HOME/.rbenv"
pathmunge "$RBENV_ROOT/bin"
[[ `which rbenv` ]] && eval "$(rbenv init -)"
# Load the auto-completion script if rbenv was loaded.
[[ -e $RBENV_ROOT/completions/rbenv.bash ]] && source $RBENV_ROOT/completions/rbenv.bash
[[ `which rbenv` ]] && eval "$(rbenv init - bash)"