nixos: zsh: setopt prompt_sp to workaround a zsh bug

See #38535, properly fixing the prompt seems complicated, and this seems
to work in all the ttys I checked.

Suggested by @Mic92.
This commit is contained in:
Jan Malakhovski 2019-08-19 22:50:49 +00:00
parent c0e56afddb
commit 065c6ed96e

View file

@ -70,7 +70,7 @@ in
promptInit = mkOption {
default = ''
if [ "$TERM" != dumb ]; then
autoload -U promptinit && promptinit && prompt walters
autoload -U promptinit && promptinit && prompt walters && setopt prompt_sp
fi
'';
description = ''