mirror of
https://github.com/nix-community/home-manager
synced 2024-11-23 21:23:38 +00:00
Starship: improve zsh terminal check (#1821)
Matches zsh's check with bash and fish, checking for a dumb terminal and allowing vterm inside Emacs.
This commit is contained in:
parent
7582090eb0
commit
0933fb8765
1 changed files with 1 additions and 1 deletions
|
@ -103,7 +103,7 @@ in {
|
||||||
'';
|
'';
|
||||||
|
|
||||||
programs.zsh.initExtra = mkIf cfg.enableZshIntegration ''
|
programs.zsh.initExtra = mkIf cfg.enableZshIntegration ''
|
||||||
if [ -z "$INSIDE_EMACS" ]; then
|
if [[ $TERM != "dumb" && (-z $INSIDE_EMACS || $INSIDE_EMACS == "vterm") ]]; then
|
||||||
eval "$(${cfg.package}/bin/starship init zsh)"
|
eval "$(${cfg.package}/bin/starship init zsh)"
|
||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in a new issue