mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-22 04:45:39 +00:00
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.
This commit is contained in:
parent
8cc5279b70
commit
b6646f7ba7
@ -100,7 +100,7 @@ in
|
|||||||
export HISTSIZE=2000
|
export HISTSIZE=2000
|
||||||
export HISTFILE=$HOME/.zsh_history
|
export HISTFILE=$HOME/.zsh_history
|
||||||
|
|
||||||
setopt HIST_IGNORE_DUPS SHARE_HISTORY
|
setopt HIST_IGNORE_DUPS SHARE_HISTORY HIST_FCNTL_LOCK
|
||||||
'';
|
'';
|
||||||
|
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user