From f432800e97413b55c536785a7b85067c0e23af37 Mon Sep 17 00:00:00 2001 From: Sameer Rahmani Date: Tue, 16 Jan 2018 10:50:06 +0000 Subject: [PATCH] History bug fixed after 3 years :P --- my.zsh | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/my.zsh b/my.zsh index 4ae9b4c..431b98d 100644 --- a/my.zsh +++ b/my.zsh @@ -25,19 +25,19 @@ source $current_path/lib/antigen.zsh #[[ -z "$PS1" ]] && return # Set options -HISTFILE=$HOME/.zsh_history -HISTSIZE=1000 +export HISTFILE=$HOME/.zsh_history +export HISTFILESIZE=500 +export SAVEHIST=500 +export HISTSIZE=500 -setopt HIST_IGNORE_DUPS \ - NO_HIST_BEEP \ - PROMPT_SUBST \ - NO_BEEP \ - AUTO_CD \ - CORRECT \ - SHARE_HISTORY \ - APPEND_HISTORY \ - INC_APPEND_HISTORY \ - HIST_IGNORE_ALL_DUPS +setopt HIST_IGNORE_DUPS +setopt NO_HIST_BEEP +setopt PROMPT_SUBST +setopt NO_BEEP +setopt AUTO_CD +setopt CORRECT +setopt SHARE_HISTORY +setopt HIST_IGNORE_ALL_DUPS # My.Zsh directory path myzsh=${MYZSH:-$HOME}