]> arthur.barton.de Git - ConfigScripts.git/commitdiff
user/bash_profile: enforce reading of profile files in tmux(1)
authorAlexander Barton <alex@barton.de>
Sun, 15 Jun 2014 23:49:36 +0000 (01:49 +0200)
committerAlexander Barton <alex@barton.de>
Sun, 15 Jun 2014 23:49:36 +0000 (01:49 +0200)
user/bash_profile

index 0c0eded6bed469b4bad98307234de18302953078..414963b5e833ac13afa7574d9742441f68e3004a 100644 (file)
@@ -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