aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--zshrc5
1 files changed, 4 insertions, 1 deletions
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"
;;
*)