1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-06 00:28:01 +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

@@ -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>
```