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:
parent
f119d4d142
commit
dbf6b2d2ab
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue