From dbf6b2d2abe0b9966d657f301ea32e4d5364b030 Mon Sep 17 00:00:00 2001 From: hpfr <44043764+hpfr@users.noreply.github.com> Date: Sun, 2 Aug 2020 04:02:52 -0500 Subject: [PATCH] starship: fix fish integration syntax The previous fish integration for starship erroneously used parts of POSIX-esque test syntax. It also used `-n` instead of `-z` to check for an unset variable. PR #1422 --- 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 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 '';