Search code examples
pluginszshhistoryoh-my-zshcommand-history

Cycle through all history occurrences by typing first word and pressing up arrow without Oh-My-Zsh


Is there a way to use OMZ's most loved feature to cycle through all history occurrences by typing first word and pressing up arrow without Oh-My-Zsh itself? I mean there should be some plugin for pure zsh for this, isn't it?

Like on this GIF

1


Solution

  • The magic for that behavior lives over in https://github.com/ohmyzsh/ohmyzsh/blob/master/lib/key-bindings.zsh

    It works just fine on its own outside of omz

    Copy, paste, attribute :)