starship: improve Emacs handling for fish

PR #1248
This commit is contained in:
Sophie Taylor 2020-05-19 07:43:13 +10:00 committed by Robert Helgesson
parent 6c7a031367
commit a43e7112e5
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 '' programs.fish.promptInit = mkIf cfg.enableFishIntegration ''
if test -z "$INSIDE_EMACS" if test [[ "$TERM" != "dumb" -a \( -n "$INSIDE_EMACS" -o "$INSIDE_EMACS" == "vterm" \) ]]
eval (${cfg.package}/bin/starship init fish) eval (${cfg.package}/bin/starship init fish)
end end
''; '';