perl-local-lib/perl-homedir.csh

21 lines
433 B
Tcsh
Raw Normal View History

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
2012-08-20 09:27:24 +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
eval `perl -Mlocal::lib`
endif
2010-01-05 02:29:12 +00:00