From bfcd07a9042b49c3839caef4a55f8a60e253e0ea Mon Sep 17 00:00:00 2001 From: Tristan Druyen Date: Tue, 9 Jul 2024 19:10:26 +0200 Subject: [PATCH] feat: Rework zellij fish support - disable default fish shell integration - disable auto attach - only enable integration outside emacs --- home-mods/shell/default.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/home-mods/shell/default.nix b/home-mods/shell/default.nix index aaa3c4f..1bcf049 100644 --- a/home-mods/shell/default.nix +++ b/home-mods/shell/default.nix @@ -52,6 +52,10 @@ in package = pkgs.fish; interactiveShellInit = '' + if test -z $INSIDE_EMACS ; + eval (${pkgs.zellij}/bin/zellij setup --generate-auto-start fish | string collect) + end + any-nix-shell fish --info-right | source function starship_transient_rprompt_func set width "$(calc "($(tput cols)-12)/2")" @@ -254,8 +258,6 @@ in zellij = { enable = true; - enableFishIntegration = true; - enableBashIntegration = true; }; zoxide.enable = true; @@ -299,7 +301,7 @@ in sessionVariables = { TERMINAL = "alacritty"; ZELLIJ_AUTO_EXIT = "true"; - ZELLIJ_AUTO_ATTACH = "true"; + ZELLIJ_AUTO_ATTACH = "false"; }; packages = with pkgs; [