aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/%HOME%
diff options
context:
space:
mode:
Diffstat (limited to '%HOME%')
-rw-r--r--%HOME%/.bashrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/%HOME%/.bashrc b/%HOME%/.bashrc
index 4a3fefc..a8f32ab 100644
--- a/%HOME%/.bashrc
+++ b/%HOME%/.bashrc
@@ -134,6 +134,6 @@ nnn() {
# tmux: start automatically.
# https://unix.stackexchange.com/a/113768
-if command -v tmux &> /dev/null && [[ ! "$TERM" =~ screen ]] && [[ ! "$TERM" =~ tmux ]] && [ -z "$TMUX" ]; then
+if command -v tmux &> /dev/null && [ -z "$STY" ] && [ -z "$TMUX" ]; then
exec tmux new-session -A -s main
fi