From 3ee724cb56dca115ba3f68e507612de6e41bc15c Mon Sep 17 00:00:00 2001 From: Marissa Staib Date: Fri, 15 Nov 2019 13:29:09 -0500 Subject: [PATCH] Autocommitted updated scripts from Adversary --- bash_tmux.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bash_tmux.sh b/bash_tmux.sh index 269c669..6ed9e89 100644 --- a/bash_tmux.sh +++ b/bash_tmux.sh @@ -33,7 +33,7 @@ function go_tmux () function auto_tmux () { - if [[ "$TERM" != screen* ]] && [[ -z "$ALREADY_TRIED_STARTING_TMUX" ]]; then + if [[ -n "$PS1" ]] && [[ "$TERM" != screen* ]] && [[ -z "$ALREADY_TRIED_STARTING_TMUX" ]]; then ALREADY_TRIED_STARTING_TMUX=true echo "Switching to tmux, press Ctrl+C to cancel..."; sleep 1s && go_tmux -x