The best ZSH history search

oh my zsh rocks
cd ~/.oh-my-zsh/plugins;
git clone git://;echo "source ${PWD}/zaw/zaw.zsh" >> ~/.zshrc
  • Edit your ~/.zshrc file
  • Replace your plugins section with this (feel free to add whatever other plugins you’re using)
plugins=(git zaw) # just need to add zaw to plugins
# this has to be before bindkey IME
source $ZSH/
# CTRL-R will pull up zaw-history (backwards zsh history search)
bindkey '^r' zaw-history
# CTRL-B will pull up zaw-git-branches which will search your current git branches and switch (git checkout) to the branch you select when you hit enter.
bindkey '^b' zaw-git-branches
  • Restart your terminal/zsh session!




Director of Engineering @GenesisBlock

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

The Blockchain- Dapps Daily — 13 Feb 2020 — Docker/AWS/Nodejs

Kubernetes Overview

Appreciating the Facets of Ruby on Rails Today

How to write a great technical blog post

Running Istio Service Mesh on OpenShift

Platform Team’s Technical Decision Process — Actor Migration Case Study

Why we encourage our engineers to post on Medium

Four men sitting along a desk with computers in front of them

Team Zendodo Update #1

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Sean Lewis

Sean Lewis

Director of Engineering @GenesisBlock

More from Medium

Missing Semester 2 — Shell

Comparison Between PyCharm VSCode

Export Safari reading list using Python

VirtualBox: Automate Virtual Machine Creation Process through VBoxManage + PowerShell