Add brew fzf functions

This commit is contained in:
punkfairie 2024-02-10 19:38:09 -08:00
parent 8866b1224f
commit 532c7c1289
No known key found for this signature in database
GPG key ID: 0858B0F48128A755
2 changed files with 22 additions and 0 deletions

View file

@ -0,0 +1,11 @@
#!/usr/bin/env fish
function bdp -d "Delete one or more selected Homebrew packages"
set -f uninst (brew leaves | fzf -m)
if test -n "$uninst"
for pkg in (echo $uninst)
brew uninstall $pkg
end
end
end

View file

@ -0,0 +1,11 @@
#!/usr/bin/env fish
function bip -d "fzf and install one or more Homebrew packages"
set -f inst (brew search "$argv" | fzf -m)
if test -n "$inst"
for pkg in (echo $inst)
brew install $pkg
end
end
end