diff options
author | Jan Malakhovski <oxij@oxij.org> | 2019-08-19 22:50:49 +0000 |
---|---|---|
committer | Jan Malakhovski <oxij@oxij.org> | 2019-08-19 22:58:13 +0000 |
commit | 065c6ed96e0c89345ad5003656f8c2160f740ec1 (patch) | |
tree | 1d3dfc4b40017bed554de6e51d76805bb12ec09c /nixos/modules/programs | |
parent | c0e56afddbcf6002e87a5ab0e8e17f381e3aa9bd (diff) | |
download | nixlib-065c6ed96e0c89345ad5003656f8c2160f740ec1.tar nixlib-065c6ed96e0c89345ad5003656f8c2160f740ec1.tar.gz nixlib-065c6ed96e0c89345ad5003656f8c2160f740ec1.tar.bz2 nixlib-065c6ed96e0c89345ad5003656f8c2160f740ec1.tar.lz nixlib-065c6ed96e0c89345ad5003656f8c2160f740ec1.tar.xz nixlib-065c6ed96e0c89345ad5003656f8c2160f740ec1.tar.zst nixlib-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')
-rw-r--r-- | nixos/modules/programs/zsh/zsh.nix | 2 |
1 files changed, 1 insertions, 1 deletions
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 = '' |