summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorJan Malakhovski <oxij@oxij.org>2015-01-07 10:53:38 +0000
committerJan Malakhovski <oxij@oxij.org>2015-01-07 15:43:01 +0000
commitb6646f7ba781fd5290b414aac499c4b835839209 (patch)
tree99c9e47e72e11b15d8746ff02203e89108f5e968 /nixos
parent8cc5279b70fe4b93f98b021fafab54809ef95b3a (diff)
downloadnixpkgs-b6646f7ba781fd5290b414aac499c4b835839209.tar
nixpkgs-b6646f7ba781fd5290b414aac499c4b835839209.tar.gz
nixpkgs-b6646f7ba781fd5290b414aac499c4b835839209.tar.bz2
nixpkgs-b6646f7ba781fd5290b414aac499c4b835839209.tar.lz
nixpkgs-b6646f7ba781fd5290b414aac499c4b835839209.tar.xz
nixpkgs-b6646f7ba781fd5290b414aac499c4b835839209.tar.zst
nixpkgs-b6646f7ba781fd5290b414aac499c4b835839209.zip
nixos: make zsh use fcntl for locking history files by default
Without this zsh creates and then unlinks .lock files at each interactive
input line, which is inhumane with respect to disk.
Diffstat (limited to 'nixos')
-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 39f9671316e..edde7a7a757 100644
--- a/nixos/modules/programs/zsh/zsh.nix
+++ b/nixos/modules/programs/zsh/zsh.nix
@@ -100,7 +100,7 @@ in
         export HISTSIZE=2000
         export HISTFILE=$HOME/.zsh_history
 
-        setopt HIST_IGNORE_DUPS SHARE_HISTORY
+        setopt HIST_IGNORE_DUPS SHARE_HISTORY HIST_FCNTL_LOCK
       '';
 
     };