bruse
November 2, 2020 ยท View on GitHub
A function that helps you use (brew link) different versions of packges using homebrew.
Usage
bruse <package> <version>
e.g.:
bruse php 7.4
bruse node 12
Without Parameters
bruse
.bruse.json
{
"node": "10",
"php": "7.2"
}
Using the above example, if a .bruse.json file exists, it will read through it automatically run e.g. bruse node 10 and bruse php 7.2 when you run bruse w/out any parameters.
.nvmrc
If you have an .nvmrc file with a semver value, e.g. 12 or 10.4 it will automatically, too, try and install it using bruse node <version> when you run bruse w/out any parameters.

- Note, if you request a version that is not installed, this script will try install it for you.
- Also, packages are currently limited to
brew, sobrew caskpackages are not supported.
Requires
brewxargsgrep
Install
Using antigen:
antigen bundle aubreypwd/zsh-plugin-bruse@1.0.0
Development
Install the package on master:
antigen bundle ssh://git@github.com/aubreypwd/zsh-plugin-bruse.git
...and contribute upstream by working in $HOME/.antigen/bundles/aubreypwd/zsh-plugin-bruse.