Created
January 26, 2021 15:06
-
-
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".
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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