From 4c8793e2644ecf230d5e2d5cc1913f1c83203f28 Mon Sep 17 00:00:00 2001 From: tastytea Date: Thu, 24 Mar 2022 01:44:34 +0100 Subject: [PATCH] =?UTF-8?q?zsh:=20History=20fix=20final=5Ffixed=5FFINAL=20?= =?UTF-8?q?(really,=20I=20swear=20=F0=9F=A4=9E)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/zsh/.zshrc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 #########################################