Skip to content

Commit

Permalink
starship: improve Emacs handling for fish
Browse files Browse the repository at this point in the history
  • Loading branch information
spacekitteh authored and colemickens committed Jun 27, 2020
1 parent b3fee79 commit d20060f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/programs/starship.nix
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ in {
'';

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)
end
'';
Expand Down

0 comments on commit d20060f

Please sign in to comment.