source: bearmail/perl-env

Last change on this file was 671, checked in by zerodeux, 8 years ago

Replace old make+wget+cpan method with modern local::lib + cpanminus

File size: 354 bytes
Line 
1# Usage :
2#
3#   $ sudo apt-get install liblocal-lib-perl cpanminus  (if needed)
4#   $ source perl-env
5#   $ cpanm Cool::CPAN::Module  (will install in your local env)
6
7base="$PWD"
8name="$(basename $base)"
9
10case "$PERL5LIB" in
11  *"$base"*) echo "Environment already active" >&2;;
12  *) eval $(perl -Mlocal::lib="$base") && export PS1="($name) $PS1";;
13esac
Note: See TracBrowser for help on using the repository browser.