Read ~/.profile.user-1st after initializing basic environment
authorAlexander Barton <alex@barton.de>
Thu, 8 Jan 2015 12:22:11 +0000 (13:22 +0100)
committerAlexander Barton <alex@barton.de>
Thu, 8 Jan 2015 12:22:13 +0000 (13:22 +0100)
This is required so that PATH, LOCAL_HOME, HOSTNAME, LC_xxx etc. are set
up correctly.

sys/profile

index acd3fa6a99d1488ad9e3436dfbaa9f5025f3a8b8..3af1ad9b45bec00c276104f677ed411d1c85131f 100644 (file)
@@ -11,9 +11,6 @@ export PROFILEREAD
 
 [ -e ~/.ConfigScripts.debug ] && echo " >> /etc/profile ..."
 
-# Source "~/.profile.user-1st", when available
-[ -r ~/.profile.user-1st ] && . ~/.profile.user-1st
-
 # Setup locale and encoding
 if [ -e ~/.ConfigScripts.debug ]; then
        echo " - TERM=\"$TERM\""
@@ -117,6 +114,9 @@ export HOSTNAME
        && export LOCAL_HOME="/usr/local/home/$LOGNAME" \
        || export LOCAL_HOME="$HOME"
 
+# Source "~/.profile.user-1st", when available
+[ -r ~/.profile.user-1st ] && . ~/.profile.user-1st
+
 # Setup environment to use local storage (no NFS, if possible!)
 export XDG_CACHE_HOME="$LOCAL_HOME/.cache"