diff --git a/homebrew/.config/fish/functions/bdp.fish.symlink b/homebrew/.config/fish/functions/bdp.fish.symlink new file mode 100644 index 0000000..bfda5f8 --- /dev/null +++ b/homebrew/.config/fish/functions/bdp.fish.symlink @@ -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 diff --git a/homebrew/.config/fish/functions/bip.fish.symlink b/homebrew/.config/fish/functions/bip.fish.symlink new file mode 100644 index 0000000..77ee5f9 --- /dev/null +++ b/homebrew/.config/fish/functions/bip.fish.symlink @@ -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