From 69f8e47e9e74c8d3d060ca22e18246b7f7d988ef Mon Sep 17 00:00:00 2001 From: Robert Helgesson Date: Fri, 15 May 2020 22:53:26 +0200 Subject: [PATCH] starship: allow running in Emacs if vterm is used The vterm buffer is backed by libvterm and can handle Starship prompts without issues. --- 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 c35a8713a..dee4e6879 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 [[ $TERM != "dumb" && -z $INSIDE_EMACS ]]; then + if [[ $TERM != "dumb" && (-z $INSIDE_EMACS || $INSIDE_EMACS == "vterm") ]]; then eval "$(${cfg.package}/bin/starship init bash)" fi '';