From 40be9f8a5590c81f2e887e82ca5000f8639e4642 Mon Sep 17 00:00:00 2001 From: Ryan Yin Date: Mon, 8 Jan 2024 14:14:12 +0800 Subject: [PATCH] fix: do not start zellij inside emacs(vterm) --- home/base/desktop/zellij/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/home/base/desktop/zellij/default.nix b/home/base/desktop/zellij/default.nix index dca97631..b6e13ba6 100644 --- a/home/base/desktop/zellij/default.nix +++ b/home/base/desktop/zellij/default.nix @@ -9,7 +9,8 @@ in { # auto start zellij in nushell programs.nushell.extraConfig = '' # auto start zellij - if not "ZELLIJ" in $env { + # except when in emacs or zellij itself + if (not "ZELLIJ" in $env) and (not "INSIDE_EMACS" in $env) { if "ZELLIJ_AUTO_ATTACH" in $env and $env.ZELLIJ_AUTO_ATTACH == "true" { ^zellij attach -c } else {