From 1600ffb6738cfd9a3df4fd75b88f8cdc4356e8eb Mon Sep 17 00:00:00 2001 From: Andrea Rogers Date: Wed, 10 Sep 2025 16:49:58 -0500 Subject: [PATCH] profile: Perl environment improvements --- .profile.d/perl.bash | 8 ++++++++ .profile.mac | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 .profile.d/perl.bash diff --git a/.profile.d/perl.bash b/.profile.d/perl.bash new file mode 100644 index 0000000..ca889c8 --- /dev/null +++ b/.profile.d/perl.bash @@ -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 \ + ) diff --git a/.profile.mac b/.profile.mac index 49e82a2..59de1b1 100644 --- a/.profile.mac +++ b/.profile.mac @@ -1,6 +1,6 @@ #[%MACPORTS%]# # MacPorts Installer addition on 2023-01-11_at_01:28:57: adding an appropriate PATH variable for use with MacPorts. -export PATH="$HOME/Library/Python/3.12/bin:$HOME/Library/Python/3.11/bin:$HOME/perl5/bin:$HOME/.local/bin:$HOME/.local/sbin:/opt/local/bin:/opt/local/sbin:/Applications/ArmGNUToolchain/12.2.rel1/arm-none-eabi/bin:$PATH" +export PATH="$HOME/Library/Python/3.12/bin:$HOME/Library/Python/3.11/bin:$HOME/.local/bin:$HOME/.local/sbin:/opt/local/bin:/opt/local/sbin:/Applications/ArmGNUToolchain/12.2.rel1/arm-none-eabi/bin:$PATH" # Finished adapting your PATH environment variable for use with MacPorts. #[%MACPORTS%]#