1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-07 00:58:02 +00:00

Add Switch Versions of a Brew Formula as a zsh til.

This commit is contained in:
jbranchaud
2015-05-25 20:29:54 -05:00
parent ffe3bf421a
commit 7c9a1ed839
2 changed files with 18 additions and 0 deletions

View File

@@ -129,6 +129,7 @@ smart people at [Hashrocket](http://hashrocket.com/).
- [Create A File Descriptor with Process Substitution](zsh/create-a-file-descriptor-with-process-substitution.md)
- [Killing A Frozen SSH Session](zsh/killing-a-frozen-ssh-session.md)
- [Search History](zsh/search-history.md)
- [Switch Versions of a Brew Formula](zsh/switch-versions-of-a-brew-formula.md)
- [Watch This Run Repeatedly](zsh/watch-this-run-repeatedly.md)
- [Where Are The Binaries?](zsh/where-are-the-binaries.md)

View File

@@ -0,0 +1,17 @@
# Switch Versions of a Brew Formula
If you've installed a couple versions of a program via brew and you'd like
to switch from the currently linked version to the other installed version,
you can use the `switch` command. For instance, if you are on version
`1.8.2` of `phantomjs` and you'd like to switch to `1.9.0`, you can simply
invoke:
```
$ brew switch phantomjs 1.9.0
```
More generically:
```
$ brew switch <formula> <version>
```