#
# ~/.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"
[ "$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