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
|
setopt HIST_IGNORE_SPACE HIST_REDUCE_BLANKS HIST_VERIFY
|
||||||
|
|
||||||
# Import new commands from the history file
|
# Import new commands from the history file
|
||||||
function _my_history_precmd()
|
function _my_history_preexec()
|
||||||
{
|
{
|
||||||
# fc -RI just does not work 🤷
|
fc -RI
|
||||||
fc -R
|
|
||||||
}
|
}
|
||||||
autoload -Uz add-zsh-hook
|
autoload -Uz add-zsh-hook
|
||||||
add-zsh-hook precmd _my_history_precmd
|
add-zsh-hook preexec _my_history_preexec
|
||||||
|
|
||||||
############################## Plugins #########################################
|
############################## Plugins #########################################
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user