Branch: refs/heads/release-16.09
  Home:   https://github.com/NixOS/nixpkgs
  Commit: d9e2cd551d7adacb08b6b123c14f761810c923cc
      
https://github.com/NixOS/nixpkgs/commit/d9e2cd551d7adacb08b6b123c14f761810c923cc
  Author: Jörg Thalheim <[email protected]>
  Date:   2016-09-28 (Wed, 28 Sep 2016)

  Changed paths:
    M nixos/modules/programs/zsh/zsh.nix

  Log Message:
  -----------
  zsh: do not export HISTFILE, HISTSIZE, SAVEHIST

Every interactive zsh sources /etc/zshrc (see STARTUP/SHUTDOWN FILES in 
zshautll(1))
Therefor every interactive zsh process will respect the content of these 
variables.
Using `export` will also lead to child processes inheriting this value.
This leads to problems, if other interactive shells are spawned such as bash,
because they use an incomptabible history format (without timestamps).
There seems to be also cases, where the local HISTSIZE in ~/.zshrc is
not sourced but /etc/zshrc, which leads to history truncation in other shells.

(cherry picked from commit 9049ab1a3b8bd27eda01c605b9dc4d2993e73caf)


_______________________________________________
nix-commits mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-commits

Reply via email to