Suppose you have just pressed "arrow-up", and you get a single-line in your terminal. You move your cursor into $BUFFER. After this the edited $BUFFER becomes the new search string. That breaks the searching model. |
||
|---|---|---|
| history-substring-search.zsh | ||
| README | ||
To activate this script, load it into an interactive ZSH session: % source history-substring-search.zsh See the "history-substring-search.zsh" file for more information: % sed -n '2,/^$/s/^#//p' history-substring-search.zsh | more