From 8ff4f33ba62c64b0c4f07c4ce6b7a2a2bce08a5a Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Mon, 16 Jun 2014 01:49:36 +0200 Subject: [PATCH] user/bash_profile: enforce reading of profile files in tmux(1) --- user/bash_profile | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.39.2