perl-local-lib/perl-homedir.csh
Troy Dawson 50f143f8af RHEL 9.0.0 Alpha bootstrap
The content of this branch was automatically imported from Fedora ELN
with the following as its source:
https://src.fedoraproject.org/rpms/perl-local-lib#8fb7d5affb3ca23d53f2f4fffbfef27d7c3a49ec
2020-10-21 14:41:45 -07:00

21 lines
571 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
eval `sed -ne 's|^[[:blank:]]*\([^#=]\{1,\}\)=\([^=]*\)|setenv \1 \2;|p' /etc/sysconfig/perl-homedir`
endif
if (-f "$HOME/.perl-homedir") then
eval `sed -ne 's|^[[:blank:]]*\([^#=]\{1,\}\)=\([^=]*\)|setenv \1 \2;|p' "$HOME/.perl-homedir"`
endif
alias perlll 'eval "`perl -Mlocal::lib`"'
# if system default
if ("x$PERL_HOMEDIR" == "x1") then
eval "`perl -Mlocal::lib`"
endif