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:
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):
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.
Release files for xontrib-linuxbrew 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| xontrib-linuxbrew-0.1.1.tar.gz | 3.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| xontrib_linuxbrew-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.2 kB
Release files / xontrib-linuxbrew-0.1.1.tar.gz
| Download URL | xontrib-linuxbrew-0.1.1.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a0e524685c55ffb26fa7d25e235ed4a8585cb3642a48bbbff9e4f927bedda191
|
|
BLAKE2b-256 checksum How to use checksums |
64bee896cca5f9105327567d4adbfc36973ba1efd62d09cc5ff79554672386e3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
|
Release files / xontrib_linuxbrew-0.1.1-py3-none-any.whl
| Download URL | xontrib_linuxbrew-0.1.1-py3-none-any.whl |
|---|---|
| Size | 3.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
20cedf1c787f819b6a8bd75cee849e12a86c4c620cc14d23524764778131d547
|
|
BLAKE2b-256 checksum How to use checksums |
213334f9c2774fe82b534865366c845bcfba92fdcae301c00d738c5e3683021b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
|