mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-11 17:39:37 +08:00
starship: allow running in Emacs if vterm is used
The vterm buffer is backed by libvterm and can handle Starship prompts without issues.
This commit is contained in:
@@ -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
|
||||
'';
|
||||
|
||||
Reference in New Issue
Block a user