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 :)
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
|
# 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
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user