diff options
author | hpfr <44043764+hpfr@users.noreply.github.com> | 2020-08-02 04:02:52 -0500 |
---|---|---|
committer | Robert Helgesson <robert@rycee.net> | 2020-08-02 13:04:24 +0200 |
commit | dbf6b2d2abe0b9966d657f301ea32e4d5364b030 (patch) | |
tree | c3845c56d36530d5a7815c661bba87a0719bbb8f /modules | |
parent | f119d4d1423cec5cee7a7b75e51d329fe2b28325 (diff) |
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
Diffstat (limited to 'modules')
-rw-r--r-- | modules/programs/starship.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/programs/starship.nix b/modules/programs/starship.nix index 6889431a20a..8462d331501 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 ''; |