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 details)

Uploaded Source

Built Distribution

xontrib_langenv-1.2.1-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file xontrib_langenv-1.2.1.tar.gz.

File metadata

  • Download URL: xontrib_langenv-1.2.1.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.10.9 Linux/6.1.1-arch1-1

File hashes

Hashes for xontrib_langenv-1.2.1.tar.gz
Algorithm Hash digest
SHA256 f46c453433517df6d4b06413444639d90c91350b4a473c7ef5739a6786e3d772
MD5 30d2ced6a03f8b1e2bda387256b92a26
BLAKE2b-256 c054527f73efc891f267abf21846a3da25793ac44d2f0f6dc20f1b43f22bc15c

See more details on using hashes here.

File details

Details for the file xontrib_langenv-1.2.1-py3-none-any.whl.

File metadata

  • Download URL: xontrib_langenv-1.2.1-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.10.9 Linux/6.1.1-arch1-1

File hashes

Hashes for xontrib_langenv-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d84cafcd304d1b9d69ed7e7a79f369992a6a63220f06e7c3d37dbbd9ff32e8bf
MD5 e137de38fe645376cf9846b14f06c470
BLAKE2b-256 dcb5231ef82c64ff12d9e21c45cbc325b6aa0d5cb4137136e8b9d3ab83b3f830

See more details on using hashes here.

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