From cca024da2badb367b6f825d603d8f7c9bd357bf6 Mon Sep 17 00:00:00 2001 From: Bruno Bigras Date: Fri, 24 Apr 2020 09:57:47 -0400 Subject: [PATCH] starship: check if $TERM == "dumb" for Bash setup This fixes an issue with Emacs tramp. PR #1191 --- modules/programs/starship.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/programs/starship.nix b/modules/programs/starship.nix index cea9c49be..c35a8713a 100644 --- a/modules/programs/starship.nix +++ b/modules/programs/starship.nix @@ -89,7 +89,7 @@ in { mkIf (cfg.settings != { }) { source = configFile cfg.settings; }; programs.bash.initExtra = mkIf cfg.enableBashIntegration '' - if [[ -z $INSIDE_EMACS ]]; then + if [[ $TERM != "dumb" && -z $INSIDE_EMACS ]]; then eval "$(${cfg.package}/bin/starship init bash)" fi '';