zsh: fc -RI doesn't really work
This commit is contained in:
parent
7aec827be1
commit
bb502cb8bb
@ -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 #########################################
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user