Skip to content

aubreypwd/zsh-plugin-bruse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bruse

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.

Screenshot

  • 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, so brew cask packages are not supported.

Requires

  • brew
  • xargs
  • grep

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.

About

Use bruse to switch versions of things you have installed via homebrew, e.g. bruse php 7.4 or bruse node 10.

Topics

Resources

License

Stars

Watchers

Forks

Languages