mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-18 08:13:40 -05:00
The "one OR MULTIPLE" part is actually true now :)
21
Examples.md
21
Examples.md
@@ -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
|
||||
}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user