From b5417798ed0644a2a826d808bae8451d9be95029 Mon Sep 17 00:00:00 2001
From: Jens Nolte <jens@nightmarestudio.de>
Date: Tue, 16 Jun 2020 22:39:23 +0200
Subject: [PATCH] zsh: Fix history options

---
 layers/zsh.nix | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/layers/zsh.nix b/layers/zsh.nix
index a76af9c..e9928ff 100644
--- a/layers/zsh.nix
+++ b/layers/zsh.nix
@@ -83,6 +83,13 @@ in
 # FIXME: set the less input preprocessor
 #export LESSOPEN="| ${pkgs.lesspipe}/bin/lesspipe.sh %s 2>&-"
 
+  programs.zsh.setOptions = [
+    "hist_ignore_all_dups"
+    "inc_append_history"
+    "hist_fcntl_lock"
+    "extended_glob"
+  ];
+
   programs.zsh.interactiveShellInit = ''
     fpath+=$LOCAL_ZSH_COMPLETION_PATH
 
@@ -125,11 +132,7 @@ in
     HISTSIZE=100000
     SAVEHIST=100000
 
-    setopt appendhistory histignorealldups
-    setopt extendedglob
-
-    unsetopt flowcontrol
-
+    unsetopt flow_control
 
     # Set up fzf for ctrl-t (paste selected paths) and alt-c (cd into selected directory)
     # This also binds ctrl-r, but that binding is reverted later
-- 
GitLab