Merge pull request #716 from ravenhall/plenv_plugin
Initial plenv plugin created.
This commit is contained in:
21
plugins/available/plenv.plugin.bash
Normal file
21
plugins/available/plenv.plugin.bash
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
# plugin for plenv
|
||||||
|
|
||||||
|
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"
|
||||||
|
|
||||||
|
fi
|
||||||
Reference in New Issue
Block a user