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:
@@ -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
|
||||
'';
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user