From: Alexander Barton Date: Thu, 8 Jan 2015 12:22:11 +0000 (+0100) Subject: Read ~/.profile.user-1st after initializing basic environment X-Git-Url: https://arthur.barton.de/gitweb/?p=ConfigScripts.git;a=commitdiff_plain;h=9e3301fa0c10ec596033d7eec4d1e77aafde85e2 Read ~/.profile.user-1st after initializing basic environment This is required so that PATH, LOCAL_HOME, HOSTNAME, LC_xxx etc. are set up correctly. --- diff --git a/sys/profile b/sys/profile index acd3fa6..3af1ad9 100644 --- a/sys/profile +++ b/sys/profile @@ -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"