Skip to content

Instantly share code, notes, and snippets.

@Keating950
Created January 26, 2021 15:06
Show Gist options
  • Save Keating950/5ee4e033a3d4f853c4a22bd5e855b18c to your computer and use it in GitHub Desktop.
Save Keating950/5ee4e033a3d4f853c4a22bd5e855b18c to your computer and use it in GitHub Desktop.
Search Homebrew formulae with FZF. Just put the script somewhere in your $PATH and call via "brew isearch".
#!/usr/bin/env zsh
traverse()
{
find "$1" -regex ".*\.rb" | while read line; do
echo $line:t:r
done
}
traverse "$(brew --prefix)/Library/Taps" | fzf --preview 'brew info {}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment