aboutsummaryrefslogtreecommitdiff
path: root/cpanm/profile.d/cpanm.sh
diff options
context:
space:
mode:
Diffstat (limited to 'cpanm/profile.d/cpanm.sh')
-rw-r--r--cpanm/profile.d/cpanm.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/cpanm/profile.d/cpanm.sh b/cpanm/profile.d/cpanm.sh
new file mode 100644
index 00000000..a860162e
--- /dev/null
+++ b/cpanm/profile.d/cpanm.sh
@@ -0,0 +1,3 @@
+# Set home directory for cpanm files to be XDG-conformant
+PERL_CPANM_HOME=${XDG_CACHE_HOME:-$HOME/.cache}/cpanm
+export PERL_CPANM_HOME