Do not init into zellij in tty terminals

This commit is contained in:
Tristan D. 2024-08-07 10:34:47 +02:00
parent 3f315df7da
commit fd70eb041a
Signed by: tristan
SSH key fingerprint: SHA256:9oFM1J63hYWJjCnLG6C0fxBS15rwNcWwdQNMOHYKJ/4

View file

@ -51,9 +51,12 @@ in
enable = true; enable = true;
package = pkgs.fish; package = pkgs.fish;
# TODO: unify into single if
interactiveShellInit = '' interactiveShellInit = ''
if test -z $INSIDE_EMACS ; 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 end
any-nix-shell fish --info-right | source any-nix-shell fish --info-right | source