Move out PATH += $HOME/perl5/bin for quilt.
[nethome.git] / .bashrc
diff --git a/.bashrc b/.bashrc
index e0b66e5..faa50c5 100644 (file)
--- a/.bashrc
+++ b/.bashrc
@@ -7,6 +7,8 @@ if [ -n "$_home_short_dotbashrc_norc" -o "${TERM#norc-}" != "$TERM" ];then
        export _home_short_dotbashrc=true
 fi
 
+export PERL5LIB="$HOME/perl5/lib/perl5/`uname -m`-linux-thread-multi:$HOME/perl5/lib/perl5";
+
 # "$PS1" for interactive shells detection.
 if [ -n "$PS1" -a -z "$_home_short_dotbashrc" ];then
        # We permit later reinitialization by unsetting it.
@@ -96,11 +98,6 @@ _bash_profile_addpath    -s CVSROOT "$HOME/pserver/cvs"
 _bash_profile_addpath    -s CVSROOT "$HOME/cvs"
 _bash_profile_addpath    -s ANT_HOME "/usr/local/ant"
 
-for _perldir in $(eval "echo $HOME{/share,/lib{,64}}/perl5{/site_perl,}");do
-       _bash_profile_addpath -f PERL5LIB "$_perldir"
-       done
-unset _perldir
-
 unset -f _bash_profile_addpath
 _bash_profile_addpath_fini
 unset -f _bash_profile_addpath_fini
@@ -163,8 +160,14 @@ export IGNOREEOF=10
 [ -n "$SSH_TTY" ] && export TMOUT=900 2>/dev/null
 export EDITOR='vim'
 [ -x /bin/less ] && export PAGER='/bin/less -MMh5cis'
-export PERL_MM_OPT=""
-[ "$UID" -ne 0 ] && export PERL_MM_OPT="$PERL_MM_OPT PREFIX=$HOME"
+
+export PERL_LOCAL_LIB_ROOT="$HOME/perl5";
+export PERL_MB_OPT="--install_base $HOME/perl5";
+export PERL_MM_OPT="INSTALL_BASE=$HOME/perl5";
+# Sometimes needed in non-interactive .bashrc.
+# Unconditionally it would break quilt.
+export PATH="$HOME/perl5/bin:$PATH";
+
 for file in $HOME/.bookmarks.html;do
        export WWW_HOME="file://$HOME/"
        [ -r $file ] && export WWW_HOME="file://$file"
@@ -333,6 +336,7 @@ function sourcewarecvscheckout {(set -ex
        );}
 function gdbgitclone { git clone git://sourceware.org/git/gdb.git gdb-git; }
 function binutilsgitclone { git clone git://sourceware.org/git/binutils.git binutils-git; }
+function archergitclone { git clone git://sourceware.org/git/archer.git archer-git; }
 function gdbcvscheckout { sourcewarecvscheckout gdb; }
 function binutilscvscheckout { sourcewarecvscheckout binutils; }
 function uri_escape   { perl -MURI::Escape -le '$_=<>;chomp;print uri_escape   $_;'; };