]> Frank Brehm's Git Trees - config/samara/etc.git/commitdiff
saving uncommitted changes in /etc prior to emerge run
authorfbrehm <fbrehm@samara.profitbricks.localdomain>
Mon, 2 Apr 2012 07:57:07 +0000 (09:57 +0200)
committerroot <root@samara.profitbricks.localdomain>
Mon, 2 Apr 2012 07:57:07 +0000 (09:57 +0200)
bash/bashrc

index 753ce3a1186bb77cdda4138e1f91e2d5a8546d6b..12944a6ae502ee28ee053af3139ad2cd2a4bf99a 100644 (file)
@@ -82,20 +82,35 @@ fi
 unset use_color safe_term match_lhs
 
 if [ -d /usr/scripts ] ; then
-  PATH=/usr/scripts:$PATH
-  export PATH
+  export PATH="/usr/scripts:${PATH}"
 fi
 
-if [ -d $HOME/bin ] ; then
-  PATH=$PATH:$HOME/bin
-  export PATH
+if [ -d "${HOME}/bin" ] ; then
+  export PATH="${PATH}:${HOME}/bin"
 fi
 
-if [ -d $HOME/lib ] ; then
-  PERL5LIB=$HOME/lib
-  export PERL5LIB
+#if [ -d $HOME/lib ] ; then
+#  PERL5LIB=$HOME/lib
+#  export PERL5LIB
+#fi
+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
 #  alias ll="ls -lA"
 #else