]> arthur.barton.de Git - ConfigScripts.git/blobdiff - user/bash_profile
Move .Xauthority to /tmp and export $XAUTHORITY
[ConfigScripts.git] / user / bash_profile
index 04876c7fa3b0fd2462b2ca86d75e7f9e2ee8c78e..9d237dd7e9f7c7009ddc54bb030b2d7e3777e7a5 100644 (file)
@@ -1,13 +1,11 @@
 #
 # ~/.bash_profile: executed by bash(1) for login shells.
+# Written 2003-2008 by Alexander Barton (alex@barton.de)
 #
-# 2008-08-07, alex@barton.de
-#  - Code cleanup
-# 2006-01-09, alex@barton.de
-#  - moved export's here.
-# 2003-07-06, alex@Arthur.Ath.CX
-#  - initial version.
-#
+
+[ -e /tmp/ConfigDebug.$USER ] && echo " >> ~/.bash_profile ..."
+
+[ -z "$PROFILEREAD" -a -r $HOME/.etc/profile ] && source $HOME/.etc/profile
 
 [ -n "$LANG" ] || export LANG="de_DE.ISO8859-1"
 export LC_MESSAGES="C"
@@ -18,6 +16,12 @@ export CVS_RSH=ssh
 
 [ "$OSTYPE" != "Aux" ] && ulimit -c 2048
 
+if [ -z "$XAUTHORITY" -a -r $HOME/.Xauthority ]; then
+       cp $HOME/.Xauthority /tmp/Xauthority-$USER
+       chmod 600 /tmp/Xauthority-$USER
+       export XAUTHORITY="/tmp/Xauthority-$USER"
+fi
+
 if [ -f ~/.bashrc ]; then
        . ~/.bashrc
 fi