]> git.donarmstrong.com Git - zsh.git/commitdiff
setopt hist_fcntl_lock only for 4.3.6 and beyond
authormartin f. krafft <madduck@madduck.net>
Tue, 6 May 2008 09:20:02 +0000 (10:20 +0100)
committermartin f. krafft <madduck@madduck.net>
Tue, 6 May 2008 09:20:02 +0000 (10:20 +0100)
.zsh/zshrc/90_history

index db74f838470aa8fbde75ef6819023c25dc0558f4..48a161a3e642115dd5093cf6d3fc33718e125ca5 100644 (file)
@@ -24,7 +24,9 @@ setopt hist_ignore_dups
 setopt extended_history
 
 # properly lock the file on write
-setopt hist_fcntl_lock
+autoload -U is-at-least
+# actually ignores the -dev-* stuff, but so be it
+is-at-least 4.3.6-dev-0+0417 && setopt hist_fcntl_lock
 
 # skip over non-contiguous duplicates when searching history
 setopt hist_find_no_dups