m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-19 09:03:43 -05:00

Changed cask to --cask

neovrnaz
2022-01-09 16:21:46 -07:00
parent f9a91b3a48
commit 60302ac8e9

@@ -1033,17 +1033,17 @@ bcp() {
# 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
} }
@@ -1056,17 +1056,17 @@ install() {
# 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
} }