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,10 +51,13 @@ in
enable = true;
package = pkgs.fish;
# TODO: unify into single if
interactiveShellInit = ''
if test -z $INSIDE_EMACS ;
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
function starship_transient_rprompt_func