From 1d9b17814f2a640eede0cd41b3aaf5866eba270a Mon Sep 17 00:00:00 2001 From: hironow Date: Sun, 1 Dec 2024 04:40:40 +0900 Subject: [PATCH] Add history settings to .zshrc file --- .zshrc | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.zshrc b/.zshrc index 64e7f5f..6cb4fa3 100644 --- a/.zshrc +++ b/.zshrc @@ -180,3 +180,18 @@ fi if _cmd_exists terramate; then alias t="terramate" fi + + +# history settings +HISTFILE=~/.zsh_history +HISTSIZE=10000 +SAVEHIST=10000 +setopt APPEND_HISTORY +setopt SHARE_HISTORY +setopt HIST_IGNORE_DUPS +setopt HIST_IGNORE_ALL_DUPS +setopt HIST_IGNORE_SPACE +setopt HIST_SAVE_NO_DUPS +setopt HIST_REDUCE_BLANKS +setopt INC_APPEND_HISTORY +setopt HIST_EXPIRE_DUPS_FIRST