From 03eaa0320057e4723ccde5525819917312c42105 Mon Sep 17 00:00:00 2001
From: lassulus <lass@aidsballs.de>
Date: Sun, 26 Jun 2016 17:10:25 +0200
Subject: [PATCH] l 2 zsh: fix history size via hack

---
 lass/2configs/zsh.nix | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/lass/2configs/zsh.nix b/lass/2configs/zsh.nix
index 7299e9ac0..b221d7677 100644
--- a/lass/2configs/zsh.nix
+++ b/lass/2configs/zsh.nix
@@ -7,9 +7,6 @@
       zsh-newuser-install() { :; }
     '';
     interactiveShellInit = ''
-      HISTFILE=~/.histfile
-      HISTSIZE=1000000
-      SAVEHIST=100000
       #unsetopt nomatch
       setopt autocd extendedglob
       bindkey -e
@@ -92,6 +89,11 @@
       esac
     '';
     promptInit = ''
+      # TODO: figure out why we need to set this here
+      HISTSIZE=900001
+      HISTFILESIZE=$HISTSIZE
+      SAVEHIST=$HISTSIZE
+
       autoload -U promptinit
       promptinit