From 4e62a5dcc6c0f0c9595210ec15e1611c3a020a48 Mon Sep 17 00:00:00 2001 From: Scott Carroll Date: Tue, 30 Dec 2025 13:42:49 +0000 Subject: [PATCH] Don't launch tmux inside tmux --- bashprofile/.bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bashprofile/.bashrc b/bashprofile/.bashrc index b38b299..3e29b66 100644 --- a/bashprofile/.bashrc +++ b/bashprofile/.bashrc @@ -144,7 +144,7 @@ export MANPAGER='nvim +Man!' [ -r "$HOME/.bashrc-local" ] && . "$HOME/.bashrc-local" -if [ "$SUDO_USER" == "" ] && [ "$TMUX" == "" ] +if [ "$SUDO_USER" == "" ] && [ "$TMUX" == "" ] && ! (echo $TERM | grep -q tmux ) then tmux attach-session -t default || tmux new-session -s default fi