From 54045e45fdc575b3f9877aab89cdcd3d10ab7595 Mon Sep 17 00:00:00 2001 From: maudin Date: Mon, 18 Jul 2022 16:39:24 +0200 Subject: [PATCH] try to fix zsh history file --- hybris.zsh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hybris.zsh b/hybris.zsh index 64a2d6b..a121d79 100644 --- a/hybris.zsh +++ b/hybris.zsh @@ -9,8 +9,12 @@ function precmd() { # [ -n "${DISPLAY}" ] && /home/hybris/.scripts/term-fontsize } -# do not share history between terms... +# history file unsetopt share_history +setopt INC_APPEND_HISTORY +setopt HIST_EXPIRE_DUPS_FIRST +HISTSIZE=500000 +SAVEHIST=500000 # Everyday aliases catwhich() {echo "\e[35mPath: $(which $1)\n\e[39m"; cat $(which $1)}