mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-18 08:13:40 -05:00
Updated Examples (markdown)
51
Examples.md
51
Examples.md
@@ -633,6 +633,7 @@ bip() {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
# 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
|
||||||
@@ -659,6 +660,56 @@ bcp() {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
### Homebrew Cask
|
||||||
|
|
||||||
|
|
||||||
|
# Install ore open webpage for selected application
|
||||||
|
# using brew cask search as input source
|
||||||
|
# and display a info quickview window for the currently marked application
|
||||||
|
```sh
|
||||||
|
install() {
|
||||||
|
local token
|
||||||
|
token=$(brew cask search | fzf-tmux --query="$1" +m --preview 'brew cask info {}')
|
||||||
|
|
||||||
|
if [ "x$token" != "x" ]
|
||||||
|
then
|
||||||
|
echo "(I)nstall or open the (h)omepage of $token"
|
||||||
|
read input
|
||||||
|
if [ $input = "i" ] || [ $input = "I" ]; then
|
||||||
|
brew cask install $token
|
||||||
|
fi
|
||||||
|
if [ $input = "h" ] || [ $input = "H" ]; then
|
||||||
|
brew cask home $token
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
# Uninstall ore open webpage for selected application
|
||||||
|
# using brew list search as input source (all brew cask installed applications)
|
||||||
|
# and display a info quickview window for the currently marked application
|
||||||
|
```sh
|
||||||
|
uninstall() {
|
||||||
|
local token
|
||||||
|
token=$(brew cask list | fzf-tmux --query="$1" +m --preview 'brew cask info {}')
|
||||||
|
|
||||||
|
if [ "x$token" != "x" ]
|
||||||
|
then
|
||||||
|
echo "(U)ninstall or open the (h)omepage of $token"
|
||||||
|
read input
|
||||||
|
if [ $input = "u" ] || [ $input = "U" ]; then
|
||||||
|
brew cask uninstall $token
|
||||||
|
fi
|
||||||
|
if [ $input = "h" ] || [ $token = "h" ]; then
|
||||||
|
brew cask home $token
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
### v
|
### v
|
||||||
|
|
||||||
#### Inspired by [v](https://github.com/rupa/v). Opens files in ~/.viminfo
|
#### Inspired by [v](https://github.com/rupa/v). Opens files in ~/.viminfo
|
||||||
|
|||||||
Reference in New Issue
Block a user