diff options
author | makefu <makefu@syntax-fehler.de> | 2016-01-12 08:38:03 +0100 |
---|---|---|
committer | makefu <makefu@syntax-fehler.de> | 2016-01-16 16:55:30 +0100 |
commit | ed83b8a61ce2ee61d82f58f068045fafd24cb2fc (patch) | |
tree | b97ea8ec9542f6d98e3f30e88188ee3d60bfc214 /nixos/modules/programs | |
parent | 4f025e02c08d6ff53784b5a18976f87c71ac8225 (diff) | |
download | nixlib-ed83b8a61ce2ee61d82f58f068045fafd24cb2fc.tar nixlib-ed83b8a61ce2ee61d82f58f068045fafd24cb2fc.tar.gz nixlib-ed83b8a61ce2ee61d82f58f068045fafd24cb2fc.tar.bz2 nixlib-ed83b8a61ce2ee61d82f58f068045fafd24cb2fc.tar.lz nixlib-ed83b8a61ce2ee61d82f58f068045fafd24cb2fc.tar.xz nixlib-ed83b8a61ce2ee61d82f58f068045fafd24cb2fc.tar.zst nixlib-ed83b8a61ce2ee61d82f58f068045fafd24cb2fc.zip |
programs.zsh: allow override of history defaults
Diffstat (limited to 'nixos/modules/programs')
-rw-r--r-- | nixos/modules/programs/zsh/zsh.nix | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/nixos/modules/programs/zsh/zsh.nix b/nixos/modules/programs/zsh/zsh.nix index dae7e446b4cf..b51104c16fa9 100644 --- a/nixos/modules/programs/zsh/zsh.nix +++ b/nixos/modules/programs/zsh/zsh.nix @@ -98,18 +98,18 @@ in loginShellInit = cfge.loginShellInit; interactiveShellInit = '' - ${cfge.interactiveShellInit} - - ${cfg.promptInit} - ${zshAliases} - - # Some sane history defaults + # history defaults export SAVEHIST=2000 export HISTSIZE=2000 export HISTFILE=$HOME/.zsh_history setopt HIST_IGNORE_DUPS SHARE_HISTORY HIST_FCNTL_LOCK + ${cfge.interactiveShellInit} + + ${cfg.promptInit} + ${zshAliases} + # Tell zsh how to find installed completions for p in ''${(z)NIX_PROFILES}; do fpath+=($p/share/zsh/site-functions $p/share/zsh/$ZSH_VERSION/functions) |