mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-18 16:45:38 -05:00
Changed cask to --cask
60
Examples.md
60
Examples.md
@@ -1030,23 +1030,23 @@ bcp() {
|
|||||||
```sh
|
```sh
|
||||||
# Install or open the webpage for the selected application
|
# Install or open the webpage for the selected application
|
||||||
# using brew cask search as input source
|
# using brew cask search as input source
|
||||||
# and display a info quickview window for the currently marked application
|
# and display a info quickview window for the currently marked application
|
||||||
install() {
|
install() {
|
||||||
local token
|
local token
|
||||||
token=$(brew search --casks | fzf-tmux --query="$1" +m --preview 'brew cask info {}')
|
token=$(brew search --casks "$1" | fzf-tmux --query="$1" +m --preview 'brew info {}')
|
||||||
|
|
||||||
if [ "x$token" != "x" ]
|
if [ "x$token" != "x" ]
|
||||||
then
|
then
|
||||||
echo "(I)nstall or open the (h)omepage of $token"
|
echo "(I)nstall or open the (h)omepage of $token"
|
||||||
read input
|
read input
|
||||||
if [ $input = "i" ] || [ $input = "I" ]; then
|
if [ $input = "i" ] || [ $input = "I" ]; then
|
||||||
brew cask install $token
|
brew install --cask $token
|
||||||
fi
|
fi
|
||||||
if [ $input = "h" ] || [ $input = "H" ]; then
|
if [ $input = "h" ] || [ $input = "H" ]; then
|
||||||
brew cask home $token
|
brew home $token
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
@@ -1054,22 +1054,22 @@ install() {
|
|||||||
# Uninstall or open the webpage for the selected application
|
# Uninstall or open the webpage for the selected application
|
||||||
# using brew list as input source (all brew cask installed applications)
|
# using brew list as input source (all brew cask installed applications)
|
||||||
# and display a info quickview window for the currently marked application
|
# and display a info quickview window for the currently marked application
|
||||||
uninstall() {
|
uninstall() {
|
||||||
local token
|
local token
|
||||||
token=$(brew cask list | fzf-tmux --query="$1" +m --preview 'brew cask info {}')
|
token=$(brew list --casks | fzf-tmux --query="$1" +m --preview 'brew info {}')
|
||||||
|
|
||||||
if [ "x$token" != "x" ]
|
if [ "x$token" != "x" ]
|
||||||
then
|
then
|
||||||
echo "(U)ninstall or open the (h)omepage of $token"
|
echo "(U)ninstall or open the (h)omepae of $token"
|
||||||
read input
|
read input
|
||||||
if [ $input = "u" ] || [ $input = "U" ]; then
|
if [ $input = "u" ] || [ $input = "U" ]; then
|
||||||
brew cask uninstall $token
|
brew uninstall --cask $token
|
||||||
fi
|
fi
|
||||||
if [ $input = "h" ] || [ $token = "h" ]; then
|
if [ $input = "h" ] || [ $token = "h" ]; then
|
||||||
brew cask home $token
|
brew home $token
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user