From 98fad4889583a8584abe651a18a405787a6d270f Mon Sep 17 00:00:00 2001 From: delphinus Date: Sat, 7 Jan 2017 18:33:32 +0900 Subject: [PATCH] Load perlbrew if needed https://github.com/sorin-ionescu/prezto/pull/1130#issuecomment-236660106 --- modules/perl/init.zsh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/modules/perl/init.zsh b/modules/perl/init.zsh index 59da1524..878b1eec 100644 --- a/modules/perl/init.zsh +++ b/modules/perl/init.zsh @@ -10,6 +10,20 @@ if (( ! $+commands[perl] )); then return 1 fi +# +# Load Perlbrew +# + +# Load Perlbrew into the shell session. +if [[ -s "${HOME}/perl5/perlbrew/etc/bashrc" ]]; then + source "${HOME}/perl5/perlbrew/etc/bashrc" + + # Load Perlbrew completion. + if [[ -s "${HOME}/perl5/perlbrew/etc/perlbrew-completion.bash" ]]; then + source "${HOME}/perl5/perlbrew/etc/perlbrew-completion.bash" + fi +fi + # # Local Module Installation #