Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aubreypwd/zsh-plugin-bruse
Use bruse to switch versions of things you have installed via homebrew, e.g. bruse php 7.4 or bruse node 10.
https://github.com/aubreypwd/zsh-plugin-bruse
homebrew node nvm php zsh-plugin zsh-plugins
Last synced: about 2 months ago
JSON representation
Use bruse to switch versions of things you have installed via homebrew, e.g. bruse php 7.4 or bruse node 10.
- Host: GitHub
- URL: https://github.com/aubreypwd/zsh-plugin-bruse
- Owner: aubreypwd
- License: mit
- Created: 2020-10-02T13:14:11.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-04-19T18:42:21.000Z (over 2 years ago)
- Last Synced: 2024-04-13T14:25:19.142Z (8 months ago)
- Topics: homebrew, node, nvm, php, zsh-plugin, zsh-plugins
- Language: Shell
- Homepage: https://brew.sh
- Size: 1.87 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `bruse`
A function that helps you use (`brew link`) different versions of packges using [homebrew](https://brew.sh).
## Usage
```bash
bruse
```e.g.:
```bash
bruse php 7.4
bruse node 12
```### Without Parameters
```bash
bruse
```#### `.bruse.json`
```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 ` when you run `bruse` w/out any parameters.
![Screenshot](screenshot.gif)
- _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](https://github.com/zsh-users/antigen):
```bash
antigen bundle aubreypwd/[email protected]
```## Development
Install the package on `master`:
```bash
antigen bundle ssh://[email protected]/aubreypwd/zsh-plugin-bruse.git
```...and contribute upstream by working in `$HOME/.antigen/bundles/aubreypwd/zsh-plugin-bruse`.