Skip to main content

Pyenv/Nodenv/Goenv/Rbenv integration for xonsh

Project description

xontrib-langenv

xonsh integration with:

This xontrib replaces the slow langenv initialization with a faster python version (and skips the rehash step), which could save up to ~0.5s for each lang

The only two exceptions are:

so if you rewrite that goenv env var setting and pyenv virtualenv init logic in python and xontribute to this xontrib, you could eliminate the last sources of xonsh langenv startup delay!

Install

Install using pip

pip install xontrib-langenv

Usage

Add to your .xonshrc as follows:

Pyenv

xontrib load pyenv

This xontrib initializes pyenv when xonsh is started. After initialization pyenv commands works as they would do in any classic shell.

Also supports pyenv-virtualenv.

Nodenv

xontrib load nodenv

This xontrib initializes nodenv when xonsh is started. After initialization nodenv commands works as they would do in any classic shell.

Goenv

xontrib load goenv

This xontrib initializes goenv when xonsh is started. After initialization goenv commands works as they would do in any classic shell.

Rbenv

xontrib load rbenv

This xontrib initializes rbenv when xonsh is started. After initialization rbenv commands works as they would do in any classic shell.

Compatibility notes

If you are using xonsh v0.11 (or older) and you have issues with the latest version of this xontrib, try to downgrade it to version 1.0.6.

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_langenv-1.2.1.tar.gz (4.1 kB view hashes)

Uploaded Source

Built Distribution

xontrib_langenv-1.2.1-py3-none-any.whl (5.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