A function that helps you use (brew link) different versions of packges using homebrew.
bruse <package> <version>e.g.:
bruse php 7.4
bruse node 12bruse{
"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.
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.
brewxargsgrep
Using antigen:
antigen bundle aubreypwd/[email protected]Install the package on master:
antigen bundle ssh://[email protected]/aubreypwd/zsh-plugin-bruse.git...and contribute upstream by working in $HOME/.antigen/bundles/aubreypwd/zsh-plugin-bruse.
