From 1cf418a1a78a0f301cab6e3b17873f7e9e37efb3 Mon Sep 17 00:00:00 2001 From: Daniel Dolezal Date: Fri, 6 Dec 2024 14:25:16 +0100 Subject: [PATCH] allow to auto open tmux in Teleport Shell --- bash-config/.bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bash-config/.bashrc b/bash-config/.bashrc index 355ab3f..5fd1244 100644 --- a/bash-config/.bashrc +++ b/bash-config/.bashrc @@ -1,4 +1,4 @@ -if [ ! -z "$USE_TMUX_SHELL" ] && [[ -t 0 ]] && [ -z "$TMUX" ]; then +if [ ! -z $(cat /etc/environment | grep "USE_TMUX_SHELL") ] && [[ -t 0 ]] && [ -z "$TMUX" ]; then tmux attach || tmux new-session exit fi