Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xontrib-linuxbrew-0.1.1.tar.gz (3.6 kB view hashes)

Uploaded Source

Built Distribution

xontrib_linuxbrew-0.1.1-py3-none-any.whl (3.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page