From 240abe71e1532ae24e6680886fc5267fe21acfdc Mon Sep 17 00:00:00 2001 From: tastytea Date: Wed, 23 Mar 2022 03:31:51 +0100 Subject: [PATCH] Zsh: Use fc-R instead of fc -RI Not sure why that's needed. --- .config/zsh/.zshrc | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index a5c3c05..4faea7e 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -60,8 +60,6 @@ zstyle ':fzf-tab:complete:man:*' fzf-preview 'whatis -l $word | cut -d- -f2,3,4, async_init ############################# History ########################################## -# One of the plugins in ${ZSH_PLUGIN_SOURCE} is changing history options. - export HISTSIZE=50000 # In memory. export SAVEHIST=10000 # On disk. # Stamp shown in the history command output. @@ -70,15 +68,16 @@ HIST_STAMPS="yyyy-mm-dd" # Write command to history file after it is finished, with time and duration. setopt NO_SHARE_HISTORY EXTENDED_HISTORY INC_APPEND_HISTORY_TIME # setopt EXTENDED_HISTORY SHARE_HISTORY -setopt HIST_EXPIRE_DUPS_FIRST HIST_IGNORE_DUPS HIST_IGNORE_SPACE HIST_REDUCE_BLANKS -setopt HIST_VERIFY +setopt HIST_EXPIRE_DUPS_FIRST HIST_IGNORE_DUPS +setopt HIST_IGNORE_SPACE HIST_REDUCE_BLANKS HIST_VERIFY # Import new commands from the history file. -function precmd_history +function _precmd_history { - fc -R -I + fc -R + # fc -RI } -# precmd_functions+=precmd_history +precmd_functions+=_precmd_history ############################## Completion ######################################