https://github.com/eugenesvk/xontrib-linuxbrew
Add Homebrew's shell environment to xonsh shell on Linux
https://github.com/eugenesvk/xontrib-linuxbrew
brew linuxbrew xonsh xontrib
Last synced: about 2 months ago
JSON representation
Add Homebrew's shell environment to xonsh shell on Linux
- Host: GitHub
- URL: https://github.com/eugenesvk/xontrib-linuxbrew
- Owner: eugenesvk
- License: mit
- Created: 2021-03-04T18:00:45.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-07-24T15:48:02.000Z (almost 4 years ago)
- Last Synced: 2025-05-13T00:06:38.332Z (about 2 months ago)
- Topics: brew, linuxbrew, xonsh, xontrib
- Language: Python
- Homepage:
- Size: 8.79 KB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: ReadMe.md
- License: License
Awesome Lists containing this project
README
Add Homebrew's shell environment to xonsh shell on Linux
(alternative to shellenv).
If you like the idea click ⭐ on the repo to accelerate adding xonsh support to Homebrew.## Introduction
__Homebrew__ has a `shellenv` command to add __its environment__ to your shell: it adds a few
environment variables (`HOMEBREW_` `PREFIX`/`CELLAR`/`REPOSITORY`) and updates a few paths (`MAN`/`INFO`/ `PATH`).This xontrib automatically translates the default __bash__ export statements of `shellenv` into __xonsh__.
## Installation
To install use pip:
```bash
xpip install xontrib-linuxbrew
# or: xpip install -U git+https://github.com/eugenesvk/xontrib-linuxbrew
```## Usage
Add this to your xonsh run control file (`~/.xonshrc` or `~/.config/rc.xsh`):
```bash
xontrib load linuxbrew
```Set the level of verbosity via `$XONTRIB_LINUXBREW_LOGLEVEL` to __0–3__:
- 0 print nothing (fail silently)
- 1 (default) print errors (e.g. can't find brew at default locations)
- 2 print warnings (e.g parsing errors)
- 3 print more verbose messages## Known issues
Only default installation paths (`~/.linuxbrew` and `/home/linuxbrew/.linuxbrew`) are supported.
## Credits
This package was created with [xontrib cookiecutter template](https://github.com/xonsh/xontrib-cookiecutter).