diff options
-rw-r--r-- | nixos/modules/programs/zsh/zsh.nix | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/nixos/modules/programs/zsh/zsh.nix b/nixos/modules/programs/zsh/zsh.nix index 4b995b66a267..deb94922da80 100644 --- a/nixos/modules/programs/zsh/zsh.nix +++ b/nixos/modules/programs/zsh/zsh.nix @@ -189,9 +189,10 @@ in . /etc/zinputrc - export SAVEHIST=${toString cfg.histSize} - export HISTSIZE=${toString cfg.histSize} - export HISTFILE=${cfg.histFile} + # Don't export these, otherwise other shells (bash) will try to use same histfile + SAVEHIST=${toString cfg.histSize} + HISTSIZE=${toString cfg.histSize} + HISTFILE=${cfg.histFile} ${optionalString (cfg.setOptions != []) "setopt ${concatStringsSep " " cfg.setOptions}"} |