Initial plenv plugin creation

pull/714/head
Nathan Waddell - Contractor 2016-05-06 16:02:35 -05:00
parent a0acb927cc
commit ef385a1ade
1 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,23 @@
# Installs plenv and perl-build if not installed
cite about-plugin
about-plugin 'Perl plenv plugin'
pathmunge "${HOME}/.plenv/bin"
[[ `which plenv` ]] && eval "$(plenv init -)"
# What an incredible smell you've discovered!
# detect bash
[[ $BASH ]] && SHELL_NAME='bash'
# detect csh/tcsh
# detect zsh
[[ $ZSH_NAME ]] && SHELL_NAME='zsh'
# detect fish
# Load the auto-completion script if plenv is installed.
[[ -e ~/.plenv/completions/plenv.${SHELL_NAME} ]] && source ~/.plenv/completions/plenv.${SHELL_NAME}