]> Frank Brehm's Git Trees - config/uhu1/etc.git/commitdiff
Small changes on bash/bashrc
authorFrank Brehm <frank@brehm-online.com>
Tue, 10 Apr 2012 07:43:59 +0000 (09:43 +0200)
committerFrank Brehm <frank@brehm-online.com>
Tue, 10 Apr 2012 07:43:59 +0000 (09:43 +0200)
bash/bashrc

index 23364f2d11c738b046128d65b53fd048820d928c..b0904ff22f833c44ca2ad29480c15abbf22b4053 100644 (file)
@@ -91,9 +91,21 @@ if [ -d $HOME/bin ] ; then
   export PATH
 fi
 
-if [ -d $HOME/lib ] ; then
-  PERL5LIB=$HOME/lib
-  export PERL5LIB
+if [ -d "$HOME/lib" ] ; then
+    if [ -d "$HOME/lib/perl" ] ; then
+        if [ -z "${PERL5LIB}" ] ; then
+            export PERL5LIB="$HOME/lib/perl"
+        else
+            export PERL5LIB="$HOME/lib/perl:${PERL5LIB}"
+        fi
+    fi
+    if [ -d "$HOME/lib/python" ] ; then
+        if [ -z "${PYTHONPATH}" ] ; then
+            export PYTHONPATH="$HOME/lib/python"
+        else
+            export PYTHONPATH="$HOME/lib/python:${PYTHONPATH}"
+        fi
+    fi
 fi
 
 #if [[ ${EUID} == 0 ]] ; then