From 0933fb876560702db3b74f05e86f77ae615acfe9 Mon Sep 17 00:00:00 2001 From: Kevin Mullins <46154511+pnotequalnp@users.noreply.github.com> Date: Tue, 23 Feb 2021 10:51:27 -0800 Subject: [PATCH] Starship: improve zsh terminal check (#1821) Matches zsh's check with bash and fish, checking for a dumb terminal and allowing vterm inside Emacs. --- modules/programs/starship.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/programs/starship.nix b/modules/programs/starship.nix index 99a1fa8e..12a0b88f 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 '';