Merge pull request #1275 from sptndc/patch-1

`init - bash` it's automatically load auto-completion
pull/1276/head
Nils Winkler 2018-11-23 09:51:50 +01:00 committed by GitHub
commit c84e3e5f85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 8 additions and 22 deletions

View File

@ -4,6 +4,4 @@ about-plugin 'load jenv, if you are using it'
export JENV_ROOT="$HOME/.jenv" export JENV_ROOT="$HOME/.jenv"
pathmunge "$JENV_ROOT/bin" pathmunge "$JENV_ROOT/bin"
if which jenv > /dev/null; then eval "$(jenv init -)"; fi if which jenv > /dev/null; then eval "$(jenv init - bash)"; fi
[[ -e $JENV_ROOT/completions/jenv.bash ]] && source $JENV_ROOT/completions/jenv.bash

View File

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

View File

@ -4,18 +4,15 @@ cite about-plugin
about-plugin 'plenv plugin for Perl' about-plugin 'plenv plugin for Perl'
if [[ -e "${HOME}/.plenv/bin" ]] ; then if [[ -e "${HOME}/.plenv/bin" ]] ; then
# load plenv bin dir into path if it exists # load plenv bin dir into path if it exists
pathmunge "${HOME}/.plenv/bin" pathmunge "${HOME}/.plenv/bin"
fi fi
if [[ `which plenv` ]] ; then if [[ `which plenv` ]] ; then
# init plenv # init plenv
eval "$(plenv init -)" eval "$(plenv init - bash)"
# Load the auto-completion script if it exists.
[[ -e "${HOME}/.plenv/completions/plenv.bash" ]] && source "${HOME}/.plenv/completions/plenv.bash"
fi fi

View File

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

View File

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