profile: Perl environment improvements
This commit is contained in:
parent
c5cd631345
commit
1600ffb673
2 changed files with 9 additions and 1 deletions
8
.profile.d/perl.bash
Normal file
8
.profile.d/perl.bash
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
perl_env() { eval $(perl -I $HOME/perl5/lib/perl5/ -Mlocal::lib) ; }
|
||||
|
||||
perl_env \
|
||||
|| (
|
||||
command -v cpanm \
|
||||
&& cpanm --local-lib=$HOME/perl5 local::lib \
|
||||
&& perl_env \
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue