diff options
author | Sophie Taylor <sophie@spacekitteh.moe> | 2020-05-19 07:43:13 +1000 |
---|---|---|
committer | Robert Helgesson <robert@rycee.net> | 2020-05-19 00:12:11 +0200 |
commit | a43e7112e58da89171d6ccdb2a0dece5cfd02480 (patch) | |
tree | c1c31a22f542b4b794999f2c697f0228223b2040 /modules | |
parent | 6c7a0313673687368a33197e58bc28f4290ec244 (diff) |
starship: improve Emacs handling for fish
PR #1248
Diffstat (limited to 'modules')
-rw-r--r-- | modules/programs/starship.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/programs/starship.nix b/modules/programs/starship.nix index dee4e687910..6889431a20a 100644 --- a/modules/programs/starship.nix +++ b/modules/programs/starship.nix @@ -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 ''; |