commit 1f5055296668f1d5ecb55d70072af3d8114c2e3f
parent 7b08975673590003f5409624ac9f233dc110bb1d
Author: Ed van Bruggen <edvb54@gmail.com>
Date: Mon, 10 Nov 2014 19:48:38 -0800
Bash: Add line to update TMUX to local TMUX when ssh'ed into computer in Tmux
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/bashrc b/bashrc
@@ -73,6 +73,9 @@ if [ "$TERM" == "xterm" ]; then
export TERM=xterm-256color
fi
+# update TMUX if ssh'ed into computer in TMUX
+[[ -z "$TMUX" ]] && exec tmux -2
+
# load other files
source ~/dotfiles/bin/edium.sh
source ~/dotfiles/bin/checkium.sh