From ef385a1adeb123fae5fb8907ee04583217339af7 Mon Sep 17 00:00:00 2001 From: Nathan Waddell - Contractor Date: Fri, 6 May 2016 16:02:35 -0500 Subject: [PATCH] Initial plenv plugin creation --- plugins/available/plenv.plugin.bash | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 plugins/available/plenv.plugin.bash diff --git a/plugins/available/plenv.plugin.bash b/plugins/available/plenv.plugin.bash new file mode 100644 index 00000000..2950fc78 --- /dev/null +++ b/plugins/available/plenv.plugin.bash @@ -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}