perl-local-lib/perl-homedir.csh
2012-08-20 12:42:06 +02:00

21 lines
433 B
Tcsh

# invoke local::lib
# default -- invoke local::lib for all users
setenv PERL_HOMEDIR 1
# load our configs, aka opportunities to set PERL_HOMEDIR=0
if (-f /etc/sysconfig/perl-homedir) then
source /etc/sysconfig/perl-homedir
endif
if (-f "$HOME/.perl-homedir") then
source "$HOME/.perl-homedir"
endif
alias perlll 'eval `perl -Mlocal::lib`'
# if system default
if ("x$PERL_HOMEDIR" == "x1") then
eval `perl -Mlocal::lib`
endif