Skip to main content

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.

Release files for xontrib-langenv 1.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for xontrib-langenv 1.2.2
File Size Uploaded
xontrib_langenv-1.2.2.tar.gz 3.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for xontrib-langenv 1.2.2
File Interpreter ABI Platform
xontrib_langenv-1.2.2-py3-none-any.whl Python 3 none any Details

Total release size: 9.2 kB

Release files / xontrib_langenv-1.2.2.tar.gz

Download URL xontrib_langenv-1.2.2.tar.gz
Size 3.6 kB
Tags Source
SHA-256 checksum
How to use checksums
949b5cc2e6b5889e7eb0a9631587c168ff210d84d91747581f4069ee03065952
BLAKE2b-256 checksum
How to use checksums
13e7d0d9ed4832a6c3a67ba94daf61466a2dd7d33838bfb0bc5a133025a1cd39
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.12.4 Linux/6.9.7-arch1-1

Release files / xontrib_langenv-1.2.2-py3-none-any.whl

Download URL xontrib_langenv-1.2.2-py3-none-any.whl
Size 5.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
de2fb29e4b125990370b7107c59d692620ae76fa5019b33571ce65de9647466d
BLAKE2b-256 checksum
How to use checksums
ada69e1ebb6ebc159b27ae047d6e28231bf967103fe97cfb8d00e9e0087d20e7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.12.4 Linux/6.9.7-arch1-1

Release history Release notifications | RSS feed

This release

1.2.2 This release

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.0

1 release file

1.0.8

1 release file

1.0.7

1 release file

1.0.6

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page