From d95cdffd61947cd628364e2f70c89a708635732b Mon Sep 17 00:00:00 2001 From: Martin Polden Date: Fri, 26 Jan 2024 14:33:22 +0100 Subject: zsh: show only relevant candidates for brew-fzf uninstall --- zshrc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/zshrc b/zshrc index e2a9685..17411a7 100644 --- a/zshrc +++ b/zshrc @@ -424,7 +424,10 @@ function restic-review { # Fuzzy-finding wrapper for brew install, info and uninstall function brew-fzf { case "$1" in - info|install|uninstall) + uninstall) + cat <(brew leaves) <(brew list --cask | sed "s/^/--cask /") | fzf --multi | xargs -r brew "$1" + ;; + info|install) cat <(brew formulae) <(brew casks | sed "s/^/--cask /") | fzf --multi | xargs -r brew "$1" ;; *) -- cgit v1.2.3