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 rycee committed May 18, 2020
1 parent 6c7a031 commit a43e711
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 a43e711

Please sign in to comment.