mirror of
https://github.com/nix-community/home-manager
synced 2024-11-23 11:39:46 +01:00
starship: check if $TERM == "dumb" for Bash setup
This fixes an issue with Emacs tramp. PR #1191
This commit is contained in:
parent
1ec45b11ab
commit
cca024da2b
1 changed files with 1 additions and 1 deletions
|
@ -89,7 +89,7 @@ in {
|
||||||
mkIf (cfg.settings != { }) { source = configFile cfg.settings; };
|
mkIf (cfg.settings != { }) { source = configFile cfg.settings; };
|
||||||
|
|
||||||
programs.bash.initExtra = mkIf cfg.enableBashIntegration ''
|
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)"
|
eval "$(${cfg.package}/bin/starship init bash)"
|
||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in a new issue