Move out PATH += $HOME/perl5/bin for quilt.
[nethome.git] / .bashrc
diff --git a/.bashrc b/.bashrc
index 54b4cce..faa50c5 100644 (file)
--- a/.bashrc
+++ b/.bashrc
@@ -8,7 +8,6 @@ if [ -n "$_home_short_dotbashrc_norc" -o "${TERM#norc-}" != "$TERM" ];then
 fi
 
 export PERL5LIB="$HOME/perl5/lib/perl5/`uname -m`-linux-thread-multi:$HOME/perl5/lib/perl5";
-export PATH="$HOME/perl5/bin:$PATH";
 
 # "$PS1" for interactive shells detection.
 if [ -n "$PS1" -a -z "$_home_short_dotbashrc" ];then
@@ -165,6 +164,9 @@ export EDITOR='vim'
 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/"