From bc8a9ea62c5b21b8722759f118d116b2d1640fa0 Mon Sep 17 00:00:00 2001 From: Alex Karle Date: Fri, 26 Jun 2020 23:50:56 -0400 Subject: [PATCH] sh: Add PERL5LIB env-var to default shell config When I use cpanminus on my home systems, I don't install modules globally, favoring a local copy under $HOME instead. To add these to the path, I need to use the PERL5LIB env var. I should probably look into plenv or perlbrew, but this gets the job done for now. --- sh/shrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sh/shrc b/sh/shrc index f3fefbd..9229cb6 100755 --- a/sh/shrc +++ b/sh/shrc @@ -7,7 +7,8 @@ PATH=$HOME/bin:$PATH # Put ~/bin on the for personal scripts EDITOR='vi' # $EDITOR, the most important (personal) of exports VISUAL='vi' # Some programs give priority to this PAGER='less' # less is more -export PATH EDITOR VISUAL PAGER +PERL5LIB=$HOME/perl5/lib/perl5 # default cpanminus location +export PATH EDITOR VISUAL PAGER PERL5LIB # Shell vars HISTFILE=${HISTFILE:="$HOME/.sh_histo"} # Don't override bash_history -- libgit2 0.28.4