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