Add Homebrew's shell environment to xonsh on Linux
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file xontrib-linuxbrew-0.1.1.tar.gz
.
File metadata
- Download URL: xontrib-linuxbrew-0.1.1.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0e524685c55ffb26fa7d25e235ed4a8585cb3642a48bbbff9e4f927bedda191 |
|
MD5 | deb112099baf46b8b4cd1af0a699f8fc |
|
BLAKE2b-256 | 64bee896cca5f9105327567d4adbfc36973ba1efd62d09cc5ff79554672386e3 |
File details
Details for the file xontrib_linuxbrew-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: xontrib_linuxbrew-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 20cedf1c787f819b6a8bd75cee849e12a86c4c620cc14d23524764778131d547 |
|
MD5 | 65235dc282d8966fe8871ee4674d941e |
|
BLAKE2b-256 | 213334f9c2774fe82b534865366c845bcfba92fdcae301c00d738c5e3683021b |