hanki.dev

Oh My Zsh: Spam ↑ instead of using reverse-i-search

In one of my earliest blog posts I wrote about reverse-i-search and how you can use it to search for previous commands you've entered in your terminal.

Since then I've switched to Mac, which uses zsh shell by default. I've also installed Oh My Zsh which allows reverse search using up and down arrows!

So you can just type ssh and the use up and arrows like you normally would, and it will search for commands you've entered which start with ssh. Not a big difference to good old reverse-i-search, but it does feel more intuitive and you don't have to remember another shortcut 🤑

This should be enabled by default with omz.


✌🏼 Like my content? Subscribe via RSS feed.