From fd70eb041ab7f47e424973c13e2369749aca864c Mon Sep 17 00:00:00 2001 From: Tristan Druyen Date: Wed, 7 Aug 2024 10:34:47 +0200 Subject: [PATCH] Do not init into zellij in tty terminals --- home-mods/shell/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/home-mods/shell/default.nix b/home-mods/shell/default.nix index 98b0415..8b4c4ef 100644 --- a/home-mods/shell/default.nix +++ b/home-mods/shell/default.nix @@ -51,9 +51,12 @@ in enable = true; package = pkgs.fish; + # TODO: unify into single if interactiveShellInit = '' if test -z $INSIDE_EMACS ; - eval (${pkgs.zellij}/bin/zellij setup --generate-auto-start fish | string collect) + if test $TERM != linux ; + eval (${pkgs.zellij}/bin/zellij setup --generate-auto-start fish | string collect) + end end any-nix-shell fish --info-right | source