A fish-native rewrite of the fzf-brew Zsh plugin. It provides fast, fuzzy install/uninstall helpers for Homebrew formulae and casks, with previews and a homepage opener.
- fish 3.0+
- Homebrew (
brew) - fzf (
fzf)
- With fisher:
fisher install devadathanmb/fzf-brew- With oh-my-fish:
omf install https://github.com/devadathanmb/fzf-brewCommands match the original aliases:
fbi— fuzzy install formulaefbui— fuzzy uninstall formulaefci— fuzzy install casksfcui— fuzzy uninstall casks
You can pass an initial query string:
fbi ripDuring selection:
shift-tabtoggles multi-select (fzf default)ctrl-oopens the homepage for the highlighted item
fzf-brew exposes a small set of variables under the FZF_BREW_ prefix. These control behavior specific to this plugin.
FZF_BREW_HOME_BINDKey binding used to open the homepage of the highlighted item (default:ctrl-o)
All other UI and interaction details—such as layout, height, preview window behavior, colors, and key bindings—are provided directly by fzf itself.
You can customize those using standard fzf mechanisms, for example:
FZF_DEFAULT_OPTSfzfcommand-line options- Environment variables or shell configuration
This plugin simply forwards those options to fzf without redefining them.
To test the plugin locally from this repo without installing it:
- Clone the repository:
git clone https://github.com/devadathanmb/fzf-brew.git- Change into the repo:
cd fzf-brew- Source the functions from your working tree:
for f in functions/*.fish
set -l fn (string replace -r '\.fish$' '' -- (basename $f))
functions -e $fn 2>/dev/null
source $f
endThen run any of the plugin commands:
fbi
fbui
fci
fcuiTo run the test suite:
fish tests/run.fish