zsh-users / zsh-history-substring-search

🐠 ZSH port of Fish history search (up arrow)
2.61k stars 156 forks source link

History not synced accross terminals. #144

Closed ysftaha closed 5 months ago

ysftaha commented 1 year ago

Reproduce by executing a command in one terminal and calling history-substring-search-up in another. Does not work unless sync or rehash is executed in the later terminal first.

adding

rehash_hook() rehash
add-zsh-hook precmd rehash_hook

The back searching across terminals works (default ^R) or on empty prompts...Only it isn't working for history-substring-search.

victorchoy commented 10 months ago

where should the above code be placed?

dxrcy commented 8 months ago

do you have setopt SHARE_HISTORY in your zshrc?