aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorSophie Taylor <sophie@spacekitteh.moe>2020-05-19 07:43:13 +1000
committerRobert Helgesson <robert@rycee.net>2020-05-19 00:12:11 +0200
commita43e7112e58da89171d6ccdb2a0dece5cfd02480 (patch)
treec1c31a22f542b4b794999f2c697f0228223b2040 /modules
parent6c7a0313673687368a33197e58bc28f4290ec244 (diff)
starship: improve Emacs handling for fish
PR #1248
Diffstat (limited to 'modules')
-rw-r--r--modules/programs/starship.nix2
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
'';