m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-19 00:53:42 -05:00

The "one OR MULTIPLE" part is actually true now :)

Sidney Liebrand
2017-09-01 18:13:36 +02:00
parent 870569cb6d
commit 42ed03e2b8

@@ -530,10 +530,13 @@ To search for windows and show which is currently active, add [ftwind](https://g
# using "brew search" as source input # using "brew search" as source input
# mnemonic [B]rew [I]nstall [P]lugin # mnemonic [B]rew [I]nstall [P]lugin
bip() { bip() {
local inst=$(brew search | fzf) local inst=$(brew search | fzf -m)
if [[ $inst ]]; then if [[ $inst ]]; then
brew install $inst for prog in $(echo $inst);
do;
brew install $prog
done;
fi fi
} }
``` ```
@@ -542,10 +545,13 @@ bip() {
# Update (one or multiple) selected application(s) # Update (one or multiple) selected application(s)
# mnemonic [B]rew [U]pdate [P]lugin # mnemonic [B]rew [U]pdate [P]lugin
bup() { bup() {
local upd=$(brew leaves | fzf) local upd=$(brew leaves | fzf -m)
if [[ $upd ]]; then if [[ $upd ]]; then
brew upgrade $upd for prog in $(echo $upd);
do;
brew upgrade $prog
done;
fi fi
} }
``` ```
@@ -554,10 +560,13 @@ bup() {
# Delete (one or multiple) selected application(s) # Delete (one or multiple) selected application(s)
# mnemonic [B]rew [C]lean [P]lugin (e.g. uninstall) # mnemonic [B]rew [C]lean [P]lugin (e.g. uninstall)
bcp() { bcp() {
local uninst=$(brew leaves | fzf) local uninst=$(brew leaves | fzf -m)
if [[ $uninst ]]; then if [[ $uninst ]]; then
brew uninstall $uninst for prog in $(echo $uninst);
do;
brew uninstall $prog
done;
fi fi
} }
``` ```