m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-18 16:45:38 -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
# mnemonic [B]rew [I]nstall [P]lugin
bip() {
local inst=$(brew search | fzf)
local inst=$(brew search | fzf -m)
if [[ $inst ]]; then
brew install $inst
for prog in $(echo $inst);
do;
brew install $prog
done;
fi
}
```
@@ -542,10 +545,13 @@ bip() {
# Update (one or multiple) selected application(s)
# mnemonic [B]rew [U]pdate [P]lugin
bup() {
local upd=$(brew leaves | fzf)
local upd=$(brew leaves | fzf -m)
if [[ $upd ]]; then
brew upgrade $upd
for prog in $(echo $upd);
do;
brew upgrade $prog
done;
fi
}
```
@@ -554,10 +560,13 @@ bup() {
# Delete (one or multiple) selected application(s)
# mnemonic [B]rew [C]lean [P]lugin (e.g. uninstall)
bcp() {
local uninst=$(brew leaves | fzf)
local uninst=$(brew leaves | fzf -m)
if [[ $uninst ]]; then
brew uninstall $uninst
for prog in $(echo $uninst);
do;
brew uninstall $prog
done;
fi
}
```