✨ Add brew fzf functions
This commit is contained in:
parent
8866b1224f
commit
532c7c1289
2 changed files with 22 additions and 0 deletions
11
homebrew/.config/fish/functions/bdp.fish.symlink
Normal file
11
homebrew/.config/fish/functions/bdp.fish.symlink
Normal 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
|
11
homebrew/.config/fish/functions/bip.fish.symlink
Normal file
11
homebrew/.config/fish/functions/bip.fish.symlink
Normal 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
|
Loading…
Reference in a new issue