diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index 2700c4f..cef3c09 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -21,12 +21,13 @@ setopt HIST_EXPIRE_DUPS_FIRST HIST_IGNORE_DUPS setopt HIST_IGNORE_SPACE HIST_REDUCE_BLANKS HIST_VERIFY HIST_FCNTL_LOCK # Import new commands from the history file -function _my_history_preexec() +function _my_import_history_zshaddhistory() { fc -RI + return 0 } autoload -Uz add-zsh-hook -add-zsh-hook preexec _my_history_preexec +add-zsh-hook zshaddhistory _my_import_history_zshaddhistory ############################## Plugins #########################################