Metadata-Version: 2.1
Name: xontrib-linuxbrew
Version: 0.1.1
Summary: Add Homebrew's shell environment to xonsh on Linux
Home-page: https://github.com/eugenesvk/xontrib-linuxbrew
Author: Evgeny
Author-email: 
License: MIT
Project-URL: Documentation, https://github.com/eugenesvk/xontrib-linuxbrew/blob/master/ReadMe.md
Project-URL: Code, https://github.com/eugenesvk/xontrib-linuxbrew
Project-URL: Issue tracker, https://github.com/eugenesvk/xontrib-linuxbrew/issues
Platform: any
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Topic :: System :: Shells
Classifier: Topic :: System :: System Shells
Classifier: Topic :: Terminals
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Requires-Dist: xonsh

<p align="center">
Add Homebrew's shell environment to <a href="https://xon.sh">xonsh shell</a> on Linux
<br/>
(alternative to <a href="https://docs.brew.sh/Homebrew-on-Linux">shellenv</a>).
</p>

<p align="center">  
If you like the idea click ⭐ on the repo to accelerate adding <a href="https://github.com/Homebrew/brew/pull/10757#issuecomment-791381047">xonsh support to Homebrew</a>.
</p>


## 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).


