1
0

Don't launch tmux inside tmux

This commit is contained in:
2025-12-30 13:42:49 +00:00
parent 0e690d5859
commit 4e62a5dcc6

View File

@@ -144,7 +144,7 @@ export MANPAGER='nvim +Man!'
[ -r "$HOME/.bashrc-local" ] && . "$HOME/.bashrc-local" [ -r "$HOME/.bashrc-local" ] && . "$HOME/.bashrc-local"
if [ "$SUDO_USER" == "" ] && [ "$TMUX" == "" ] if [ "$SUDO_USER" == "" ] && [ "$TMUX" == "" ] && ! (echo $TERM | grep -q tmux )
then then
tmux attach-session -t default || tmux new-session -s default tmux attach-session -t default || tmux new-session -s default
fi fi