summaryrefslogtreecommitdiff
path: root/content/post/2009-08-23-perl5lib-and-zsh.md
diff options
context:
space:
mode:
Diffstat (limited to 'content/post/2009-08-23-perl5lib-and-zsh.md')
-rw-r--r--content/post/2009-08-23-perl5lib-and-zsh.md18
1 files changed, 18 insertions, 0 deletions
diff --git a/content/post/2009-08-23-perl5lib-and-zsh.md b/content/post/2009-08-23-perl5lib-and-zsh.md
new file mode 100644
index 0000000..6899efc
--- /dev/null
+++ b/content/post/2009-08-23-perl5lib-and-zsh.md
@@ -0,0 +1,18 @@
+---
+date: 2009-08-23T00:00:00Z
+summary: In which I show how I manage my $PERL5LIB.
+title: $PERL5LIB and zsh
+---
+
+in my .zsh.d/S80_perl
+
+```bash
+BASE_PATH=~/code/work/rtgi
+for perl_lib in $(ls $BASE_PATH); do
+ if [ -f $BASE_PATH/$perl_lib/Makefile.PL ]; then
+ PERL5LIB=${PERL5LIB:+$PERL5LIB:}$BASE_PATH/$perl_lib/lib
+ fi
+done
+export PERL5LIB
+
+```