all repos — nixfiles @ 468e3de0842b7fbc4549557e1d261163be686582

System and user configuration, managed by nix and home-manager

zsh: fix broken prompt detection when using ssh

Alan Pearce
commit

468e3de0842b7fbc4549557e1d261163be686582

parent

967c16845b0170460bf898bc8998c4a61689a0f0

1 file changed, 6 insertions(+), 3 deletions(-)

jump to
M user/settings/zsh.nixuser/settings/zsh.nix
@@ -209,10 +209,13 @@ fi
''; initExtraFirst = '' - if [[ -r "${config.xdg.cacheHome}/p10k-instant-prompt-''${(%):-%n}.zsh" ]]; then - source "${config.xdg.cacheHome}/p10k-instant-prompt-''${(%):-%n}.zsh" + if [[ $TERM != "dumb" ]] + then + if [[ -r "${config.xdg.cacheHome}/p10k-instant-prompt-''${(%):-%n}.zsh" ]]; then + source "${config.xdg.cacheHome}/p10k-instant-prompt-''${(%):-%n}.zsh" + fi + typeset -g POWERLEVEL9K_DISABLE_CONFIGURATION_WIZARD=true fi - typeset -g POWERLEVEL9K_DISABLE_CONFIGURATION_WIZARD=true ''; initExtra = ''