From: Alexander Barton Date: Sun, 15 Jun 2014 23:49:36 +0000 (+0200) Subject: user/bash_profile: enforce reading of profile files in tmux(1) X-Git-Url: https://arthur.ath.cx/gitweb/?a=commitdiff_plain;h=8ff4f33ba62c64b0c4f07c4ce6b7a2a2bce08a5a;p=ConfigScripts.git user/bash_profile: enforce reading of profile files in tmux(1) --- diff --git a/user/bash_profile b/user/bash_profile index 0c0eded..414963b 100644 --- a/user/bash_profile +++ b/user/bash_profile @@ -12,6 +12,9 @@ [ -e ~/.ConfigScripts.debug ] && echo " .. ~/.bash_profile ..." +# Enforce login shell behaviour when running in tmux(1): +[ -n "$TMUX" ] && unset PROFILEREAD + [ -z "$PROFILEREAD" -a -r ~/.etc/profile ] && source ~/.etc/profile [ -z "$PROFILEREAD" -a -r /etc/profile ] && source /etc/profile [ -r ~/.bash_profile.user ] && source ~/.bash_profile.user