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