1
0
Fork 0

zsh: History fix final_fixed_FINAL (really, I swear 🤞)

This commit is contained in:
tastytea 2022-03-24 01:44:34 +01:00
parent 869bf8933e
commit 4c8793e264
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
1 changed files with 3 additions and 2 deletions

View File

@ -21,12 +21,13 @@ setopt HIST_EXPIRE_DUPS_FIRST HIST_IGNORE_DUPS
setopt HIST_IGNORE_SPACE HIST_REDUCE_BLANKS HIST_VERIFY HIST_FCNTL_LOCK setopt HIST_IGNORE_SPACE HIST_REDUCE_BLANKS HIST_VERIFY HIST_FCNTL_LOCK
# Import new commands from the history file # Import new commands from the history file
function _my_history_preexec() function _my_import_history_zshaddhistory()
{ {
fc -RI fc -RI
return 0
} }
autoload -Uz add-zsh-hook autoload -Uz add-zsh-hook
add-zsh-hook preexec _my_history_preexec add-zsh-hook zshaddhistory _my_import_history_zshaddhistory
############################## Plugins ######################################### ############################## Plugins #########################################