]> git.donarmstrong.com Git - zsh.git/commitdiff
ignore failure when setopt histfcntllock, is-at-least did not work properly
authormartin f. krafft <madduck@madduck.net>
Mon, 20 Apr 2009 09:37:26 +0000 (09:37 +0000)
committermartin f. krafft <madduck@madduck.net>
Mon, 20 Apr 2009 09:37:26 +0000 (09:37 +0000)
.zsh/zshrc/80_history

index faf9e6d6208b19aab4ad8f4dda80746ff6904e63..563ad908eb5b9c09d3fb113d4bd338c9972a9500 100644 (file)
@@ -24,10 +24,8 @@ setopt hist_ignore_dups
 # save timestamp and duration with each event
 setopt extended_history
 
-# properly lock the file on write
-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
+# properly lock the file on write, if that option exists
+setopt hist_fcntl_lock 2>/dev/null
 
 # skip over non-contiguous duplicates when searching history
 setopt hist_find_no_dups