2010-01-05 02:29:12 +00:00
|
|
|
# invoke local::lib
|
|
|
|
|
|
|
|
# default -- invoke local::lib for all users
|
|
|
|
setenv PERL_HOMEDIR 1
|
|
|
|
|
|
|
|
# load our configs, aka opportunities to set PERL_HOMEDIR=0
|
2012-08-20 09:27:24 +00:00
|
|
|
if (-f /etc/sysconfig/perl-homedir) then
|
|
|
|
source /etc/sysconfig/perl-homedir
|
|
|
|
endif
|
|
|
|
if (-f "$HOME/.perl-homedir") then
|
|
|
|
source "$HOME/.perl-homedir"
|
|
|
|
endif
|
2010-01-05 02:29:12 +00:00
|
|
|
|
2013-11-21 12:38:40 +00:00
|
|
|
alias perlll 'eval "`perl -Mlocal::lib`"'
|
2010-01-05 02:29:12 +00:00
|
|
|
|
|
|
|
# if system default
|
2012-08-20 09:27:24 +00:00
|
|
|
if ("x$PERL_HOMEDIR" == "x1") then
|
2013-11-21 12:38:40 +00:00
|
|
|
eval "`perl -Mlocal::lib`"
|
2012-08-20 09:27:24 +00:00
|
|
|
endif
|
2010-01-05 02:29:12 +00:00
|
|
|
|