feat: Rework zellij fish support

- disable default fish shell integration
- disable auto attach
- only enable integration outside emacs
This commit is contained in:
Tristan D. 2024-07-09 19:10:26 +02:00
parent b4bfaf0e18
commit bfcd07a904
Signed by: tristan
SSH key fingerprint: SHA256:9oFM1J63hYWJjCnLG6C0fxBS15rwNcWwdQNMOHYKJ/4

View file

@ -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; [