From 065c6ed96e0c89345ad5003656f8c2160f740ec1 Mon Sep 17 00:00:00 2001 From: Jan Malakhovski Date: Mon, 19 Aug 2019 22:50:49 +0000 Subject: [PATCH] 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. --- nixos/modules/programs/zsh/zsh.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/programs/zsh/zsh.nix b/nixos/modules/programs/zsh/zsh.nix index bd1a77680663..3cbfd8fa4d32 100644 --- a/nixos/modules/programs/zsh/zsh.nix +++ b/nixos/modules/programs/zsh/zsh.nix @@ -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 = ''