diff --git a/modules/programs/starship.nix b/modules/programs/starship.nix index 99a1fa8e9..12a0b88fa 100644 --- a/modules/programs/starship.nix +++ b/modules/programs/starship.nix @@ -103,7 +103,7 @@ in { ''; programs.zsh.initExtra = mkIf cfg.enableZshIntegration '' - if [ -z "$INSIDE_EMACS" ]; then + if [[ $TERM != "dumb" && (-z $INSIDE_EMACS || $INSIDE_EMACS == "vterm") ]]; then eval "$(${cfg.package}/bin/starship init zsh)" fi '';