allow to auto open tmux in Teleport Shell

This commit is contained in:
2024-12-06 14:25:16 +01:00
parent 27291ad2ac
commit 1cf418a1a7
+1 -1
View File
@@ -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 tmux attach || tmux new-session
exit exit
fi fi