From d78f810849c9e2b7f2f04587bfa42c437f63f886 Mon Sep 17 00:00:00 2001 From: PlexSheep Date: Thu, 23 Feb 2023 09:00:09 +0100 Subject: [PATCH] history maybe fix --- home/.zsh-server/zshrc | 6 +++++- home/.zsh/zshrc | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/home/.zsh-server/zshrc b/home/.zsh-server/zshrc index 161194a..8e36fc5 100644 --- a/home/.zsh-server/zshrc +++ b/home/.zsh-server/zshrc @@ -25,12 +25,16 @@ export ZSH=$HOME/.zsh-server ### ---- history config ------------------------------------- export HISTFILE=~/.zsh_history +setopt appendhistory +setopt INC_APPEND_HISTORY +setopt SHARE_HISTORY # How many commands zsh will load to memory. export HISTSIZE=100000 # How many commands history will save on file. -export SAVEHIST=100000 +# all of them! +export SAVEHIST=10000000 # History won't save duplicates. setopt HIST_IGNORE_ALL_DUPS diff --git a/home/.zsh/zshrc b/home/.zsh/zshrc index 41bcbb8..1ee468e 100644 --- a/home/.zsh/zshrc +++ b/home/.zsh/zshrc @@ -34,12 +34,16 @@ export ZSH=$HOME/.zsh ### ---- history config ------------------------------------- export HISTFILE=~/.zsh_history +setopt appendhistory +setopt INC_APPEND_HISTORY +setopt SHARE_HISTORY # How many commands zsh will load to memory. export HISTSIZE=100000 # How many commands history will save on file. -export SAVEHIST=100000 +# all of them! +export SAVEHIST=10000000 # History won't save duplicates. setopt HIST_IGNORE_ALL_DUPS