summaryrefslogtreecommitdiffstatshomepage
path: root/sh/.config/profile.d/20-perl.sh
diff options
context:
space:
mode:
authorToby Vincent <tobyv13@gmail.com>2023-02-10 16:53:03 -0600
committerToby Vincent <tobyv13@gmail.com>2023-02-10 19:52:19 -0600
commite712243be494a4158901014faad7ec67ceb809e5 (patch)
tree6d44ad0eff41f06e96609fd0d2c874fdda6c8b44 /sh/.config/profile.d/20-perl.sh
parent8cf873086c3a49fdc0f4aff5b5042c40f32b8537 (diff)
feat: split `.profile` to individual files
split `$XDG_CONFIG_HOME/.profile` up into `$XDG_CONFIG_HOME/profile.d` directory. This allows for better management and prioritization between different tool's env.
Diffstat (limited to 'sh/.config/profile.d/20-perl.sh')
-rw-r--r--sh/.config/profile.d/20-perl.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/sh/.config/profile.d/20-perl.sh b/sh/.config/profile.d/20-perl.sh
new file mode 100644
index 0000000..8ee3b93
--- /dev/null
+++ b/sh/.config/profile.d/20-perl.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+export PERL_CPANM_HOME="$XDG_CACHE_HOME/perl"
+export PERL_LOCAL_LIB_ROOT="$XDG_DATA_HOME/perl"
+export PERL5LIB="$PERL_LOCAL_LIB_ROOT/lib/perl5"
+export PERL_MB_OPT="--install_base '$PERL_LOCAL_LIB_ROOT'"
+export PERL_MM_OPT="INSTALL_BASE=$PERL_LOCAL_LIB_ROOT"
+export PATH="$PATH:$PERL_LOCAL_LIB_ROOT/bin"