diff --git a/modules/programs/starship.nix b/modules/programs/starship.nix index 6889431a2..8462d3315 100644 --- a/modules/programs/starship.nix +++ b/modules/programs/starship.nix @@ -101,7 +101,7 @@ in { ''; programs.fish.promptInit = mkIf cfg.enableFishIntegration '' - if test [[ "$TERM" != "dumb" -a \( -n "$INSIDE_EMACS" -o "$INSIDE_EMACS" == "vterm" \) ]] + if test "$TERM" != "dumb" -a \( -z "$INSIDE_EMACS" -o "$INSIDE_EMACS" = "vterm" \) eval (${cfg.package}/bin/starship init fish) end '';