Created
July 15, 2022 16:44
-
-
Save madskjeldgaard/5182c7600dfc1860b0c2887fdc20afe3 to your computer and use it in GitHub Desktop.
FZF + HomeBrew: Fuzzy find and install packages
This file contains hidden or 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
#!/bin/zsh | |
# Made by Niklas Adam <3 | |
brew search // | fzf --preview 'brew info {}' -e -m --reverse --pointer='▓' --prompt='~ ' --marker='<>' --preview-window=right:60% --border=sharp --bind 'ctrl-w:toggle-preview-wrap' --bind 'ctrl-l:clear-query' --bind 'ctrl-d:deselect-all' --bind 'ctrl-space:toggle' --bind 'ctrl-p:toggle-preview' --bind 'shift-right:preview-page-down' --bind 'shift-left:preview-page-up' --header=$'╔════════════════════╗ \n║░ lsbrew ░║\n╚════════════════════╝\n ' | awk '{print $1}' | xargs -ro brew install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
😽 Møzz Møzz