zsh: only do promptInit when TERM!=dumb

This allows tramp to be used correctly when default shell is zsh.
This commit is contained in:
Matthew Bauer 2018-05-30 22:27:24 -04:00
parent ee1d6114a8
commit 2f68e86ce6

View file

@ -69,7 +69,9 @@ in
promptInit = mkOption {
default = ''
autoload -U promptinit && promptinit && prompt walters
if [ "$TERM" != dumb ]; then
autoload -U promptinit && promptinit && prompt walters
fi
'';
description = ''
Shell script code used to initialise the zsh prompt.