zsh: fc -RI doesn't really work

This commit is contained in:
tastytea 2022-03-23 23:54:28 +01:00
parent 7aec827be1
commit bb502cb8bb
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM

View File

@ -21,12 +21,13 @@ 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 _my_history_prexec()
function _my_history_precmd()
{
fc -RI
# fc -RI just does not work 🤷
fc -R
}
autoload -Uz add-zsh-hook
add-zsh-hook preexec _my_history_prexec
add-zsh-hook precmd _my_history_precmd
############################## Plugins #########################################