summary refs log tree commit diff
path: root/nixos/modules/programs/zsh/zsh.nix
diff options
context:
space:
mode:
authorJan Malakhovski <oxij@oxij.org>2019-08-19 22:50:49 +0000
committerJan Malakhovski <oxij@oxij.org>2019-08-19 22:58:13 +0000
commit065c6ed96e0c89345ad5003656f8c2160f740ec1 (patch)
tree1d3dfc4b40017bed554de6e51d76805bb12ec09c /nixos/modules/programs/zsh/zsh.nix
parentc0e56afddbcf6002e87a5ab0e8e17f381e3aa9bd (diff)
downloadnixpkgs-065c6ed96e0c89345ad5003656f8c2160f740ec1.tar
nixpkgs-065c6ed96e0c89345ad5003656f8c2160f740ec1.tar.gz
nixpkgs-065c6ed96e0c89345ad5003656f8c2160f740ec1.tar.bz2
nixpkgs-065c6ed96e0c89345ad5003656f8c2160f740ec1.tar.lz
nixpkgs-065c6ed96e0c89345ad5003656f8c2160f740ec1.tar.xz
nixpkgs-065c6ed96e0c89345ad5003656f8c2160f740ec1.tar.zst
nixpkgs-065c6ed96e0c89345ad5003656f8c2160f740ec1.zip
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.
Diffstat (limited to 'nixos/modules/programs/zsh/zsh.nix')
-rw-r--r--nixos/modules/programs/zsh/zsh.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/programs/zsh/zsh.nix b/nixos/modules/programs/zsh/zsh.nix
index bd1a7768066..3cbfd8fa4d3 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 = ''