summaryrefslogtreecommitdiff
path: root/_posts/2009-08-23-perl5lib-and-zsh.md
blob: a4ddc0add0366856daae6d965687e9d4a0db7652 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
---
layout: post
summary: In which I show how I manage my $PERL5LIB.
title: $PERL5LIB and zsh
type: codex
---

in my .zsh.d/S80_perl

{% highlight 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

{% endhighlight %}