perl-local-lib/perl-homedir.sh
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

17 lines
403 B
Bash

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