From a54f176e95332fc4793a8166977fd5dab26e0b07 Mon Sep 17 00:00:00 2001 From: andrey_varnavskiy Date: Fri, 6 Dec 2024 14:45:59 +0500 Subject: [PATCH] no tmux in tty --- home-manager/modules/zsh.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home-manager/modules/zsh.nix b/home-manager/modules/zsh.nix index 97e700a..389aae3 100644 --- a/home-manager/modules/zsh.nix +++ b/home-manager/modules/zsh.nix @@ -32,7 +32,7 @@ initExtra = '' # Start Tmux automatically if not already running - if [ -z "$TMUX" ]; then + if [ -z "$TMUX" ] && [ -n "$DISPLAY" ]; then tmux attach-session -t default || tmux new-session -s default fi '';