> > Would it be difficult to hack it, such that if some text is already at the > prompt, the UP and DOWN arrows would only recall entries from the history, > which start with that text? It really speeds up things. >
Looking at the logic here might be a good start: https://github.com/zsh-users/zsh-history-substring-search/blob/master/zsh-history-substring-search.zsh
