From 735d87c16b85c960187115b0c31d44ad8831e122 Mon Sep 17 00:00:00 2001 From: Marissa Staib Date: Fri, 15 Nov 2019 13:53:17 -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 6ed9e89..81ddb8a 100644 --- a/bash_tmux.sh +++ b/bash_tmux.sh @@ -33,7 +33,7 @@ function go_tmux () function auto_tmux () { - if [[ -n "$PS1" ]] && [[ "$TERM" != screen* ]] && [[ -z "$ALREADY_TRIED_STARTING_TMUX" ]]; then + if [[ -t 1 ]] && [[ -t 0 ]] && [[ -t 2 ]] && [[ "$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