1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-23 11:39:46 +01:00

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
This commit is contained in:
hpfr 2020-08-02 04:02:52 -05:00 committed by Robert Helgesson
parent f119d4d142
commit dbf6b2d2ab
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

@ -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
'';