|
@ -30,9 +30,13 @@ Cool, there it is. Let's install it. |
|
|
|
|
|
|
|
|
$ brew cask install google-chrome |
|
|
$ brew cask install google-chrome |
|
|
Downloading... |
|
|
Downloading... |
|
|
Success! google-chrome installed to /usr/local/Cellar/google-chrome/17.0.963.56 |
|
|
Success! google-chrome installed to /usr/local/Cellar/google-chrome/stable-channel |
|
|
|
|
|
|
|
|
Now we have `Google Chrome.app` in our Cellar, let's get it linked somewhere useful: |
|
|
Now we have `Google Chrome.app` in our Cellar. Cool. |
|
|
|
|
|
|
|
|
|
|
|
If you like, it's easy to get it linked somewhere more visible (see ["Alfred |
|
|
|
|
|
Integration"](#alfred-integration) below for an idea that makes this step |
|
|
|
|
|
unnecessary): |
|
|
|
|
|
|
|
|
$ brew cask linkapps |
|
|
$ brew cask linkapps |
|
|
/Users/phinze/Applications/Google Chrome.app -> /usr/local/Cellar/google-chrome/17.0.963.56/Google Chrome.app |
|
|
/Users/phinze/Applications/Google Chrome.app -> /usr/local/Cellar/google-chrome/17.0.963.56/Google Chrome.app |
|
@ -47,7 +51,9 @@ Just run `brew cask search` with no arguments to get a list. |
|
|
|
|
|
|
|
|
# How do I update brew-cask? |
|
|
# How do I update brew-cask? |
|
|
|
|
|
|
|
|
Currently you'll have to `brew rm brew-cask` and then run the command above to reinstall. |
|
|
Since this repository is a Tap, you'll pull down the latest Casks with a simple |
|
|
|
|
|
`brew-update`. When the `brew-cask` tool itself is updated, it will show in |
|
|
|
|
|
`brew outdated` and you can upgrade it via the normal Homebrew workflow. |
|
|
|
|
|
|
|
|
# What is a Cask? |
|
|
# What is a Cask? |
|
|
|
|
|
|
|
@ -65,23 +71,42 @@ Casks currently have three fields: |
|
|
It's really just a start at this point, but it works, and I've got big plans! |
|
|
It's really just a start at this point, but it works, and I've got big plans! |
|
|
|
|
|
|
|
|
`brew-cask` currently understands how to install `dmg` and `zip` files that |
|
|
`brew-cask` currently understands how to install `dmg` and `zip` files that |
|
|
contain a `app` file. I'd like to extend it to be able to handle `pkg` files |
|
|
contain a `.app` file. I'd like to extend it to be able to handle `pkg` files |
|
|
as well as the numerous other permutations of compression and distribution in |
|
|
as well as the numerous other permutations of compression and distribution in |
|
|
the wild (`app` inside `dmg` inside `zip`; folder inside `dmg`; etc.). |
|
|
the wild (`.app` inside `dmg` inside `zip`; folder inside `dmg`; etc.). |
|
|
|
|
|
|
|
|
I plan to use the `Cask` model to allow per-project customization of behavior, |
|
|
I plan to use the `Cask` model to allow per-project customization of behavior, |
|
|
like Homebrew does with `Formula`. This would allow weirdo applications like |
|
|
like Homebrew does with `Formula`. This would allow weirdo applications like, |
|
|
Eclipse ("really you want me to drag that whole folder to `Applications`?") to |
|
|
say, Eclipse ("you really want me to drag that whole *folder* to |
|
|
contain their complexity. |
|
|
`Applications`? ew.") to contain their complexity. |
|
|
|
|
|
|
|
|
Each Cask will then encapsulate and automate the story of how a given |
|
|
Each Cask will then encapsulate and automate the story of how a given |
|
|
application should be installed. If all goes well - I'm hoping to build up a |
|
|
application should be installed. If all goes well - I'm hoping to build up a |
|
|
community-maintained collection of Casks that becomes the standard way that |
|
|
community-maintained collection of Casks that becomes the standard way that |
|
|
hackers install Mac apps. |
|
|
hackers install Mac apps. |
|
|
|
|
|
|
|
|
|
|
|
# Can I contribute? |
|
|
|
|
|
|
|
|
|
|
|
__Yes, yes, yes!__ Please fork/pull request to update Casks, to add features, |
|
|
|
|
|
to clean up documentation--anything at all that you can do to help out is very |
|
|
|
|
|
welcome. |
|
|
|
|
|
|
|
|
|
|
|
It's also __pretty darn easy__ to create Casks, so please build more of them |
|
|
|
|
|
for the software you use. And if `brew-cask` doesn't support the packaging |
|
|
|
|
|
format of your software, please open an issue and we can get it working |
|
|
|
|
|
together. |
|
|
|
|
|
|
|
|
|
|
|
The whole idea is to build a _community-maintained_ list of easily installable |
|
|
|
|
|
packages, so the community part is important! Every little bit counts. |
|
|
|
|
|
|
|
|
# Alfred Integration |
|
|
# Alfred Integration |
|
|
|
|
|
|
|
|
I've been using Casks along with Alfred to great effect. Just add |
|
|
I've been using Casks along with Alfred to great effect. Just add |
|
|
`/usr/local/Cellar` as a Search Scope in Alfred's preferences, and then |
|
|
`/usr/local/Cellar` as a Search Scope in Alfred's preferences, and then |
|
|
applications become available in Alfred immediately after a `brew cask |
|
|
applications become available in Alfred immediately after a `brew cask |
|
|
install`. Your fingertips will thank you! |
|
|
install`. Your fingertips will thank you. |
|
|
|
|
|
|
|
|
|
|
|
With this setup, you don't actually need `brew cask linkapps` if you always |
|
|
|
|
|
open your apps from Alfred. This means that everything stays nice and tidy. |
|
|
|
|
|
|
|
|
|
|
|
Oh, and you can `brew cask install alfred` too! Not bad, eh? |
|
|