1
0
mirror of https://github.com/nix-community/home-manager synced 2024-06-02 13:03:33 +02:00

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