fzf

fzf is a general-purpose command-line fuzzy finder. It's an interactive Unix filter.

brew install fzf

Set up shell key bindings (like Ctrl+R for history, Ctrl+T for files) and fuzzy auto-completion:

$(brew --prefix)/opt/fzf/install

Example: use fzf to pickup a recent branch:

git checkout $(git for-each-ref --sort=-committerdate refs/heads/ --format='%(refname:short)' | fzf)

To Uninstall

$(brew --prefix)/opt/fzf/uninstall