Zsh: Fix history import again

This commit is contained in:
tastytea 2022-03-24 01:08:39 +01:00
parent 6968e776dd
commit 51e4f9178f
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM

View File

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