Zsh: Use fc-R instead of fc -RI
Not sure why that's needed.
This commit is contained in:
parent
8b3a3abfb7
commit
240abe71e1
|
@ -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 ######################################
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user