Only pathmunge if plenv path exists, removed error message when plenv not found
parent
1554a01e9c
commit
79321ce217
|
|
@ -3,8 +3,13 @@
|
||||||
cite about-plugin
|
cite about-plugin
|
||||||
about-plugin 'plenv plugin for Perl'
|
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"
|
pathmunge "${HOME}/.plenv/bin"
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ `which plenv` ]] ; then
|
if [[ `which plenv` ]] ; then
|
||||||
|
|
||||||
# init plenv
|
# init plenv
|
||||||
|
|
@ -13,5 +18,4 @@ if [[ `which plenv` ]] ; then
|
||||||
# Load the auto-completion script if it exists.
|
# Load the auto-completion script if it exists.
|
||||||
[[ -e ~/.plenv/completions/plenv.bash ]] && source ~/.plenv/completions/plenv.bash
|
[[ -e ~/.plenv/completions/plenv.bash ]] && source ~/.plenv/completions/plenv.bash
|
||||||
|
|
||||||
else echo "Unable to find plenv. See https://github.com/tokuhirom/plenv for installation"
|
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue