Zsh: Fix history import again
This commit is contained in:
parent
6968e776dd
commit
51e4f9178f
|
@ -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 #########################################
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user