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:
goenv
, which requires an extrarehash --only-manage-paths
init step to set some more environment variablesvirtualenv-init
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
Built Distribution
File details
Details for the file xontrib_langenv-1.2.2.tar.gz
.
File metadata
- Download URL: xontrib_langenv-1.2.2.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.4 Linux/6.9.7-arch1-1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 949b5cc2e6b5889e7eb0a9631587c168ff210d84d91747581f4069ee03065952 |
|
MD5 | 566dfc59fefd9dc87bbe3c28f0c58bd7 |
|
BLAKE2b-256 | 13e7d0d9ed4832a6c3a67ba94daf61466a2dd7d33838bfb0bc5a133025a1cd39 |
File details
Details for the file xontrib_langenv-1.2.2-py3-none-any.whl
.
File metadata
- Download URL: xontrib_langenv-1.2.2-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.4 Linux/6.9.7-arch1-1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | de2fb29e4b125990370b7107c59d692620ae76fa5019b33571ce65de9647466d |
|
MD5 | b33031beaa81772bc2852b6b349a9465 |
|
BLAKE2b-256 | ada69e1ebb6ebc159b27ae047d6e28231bf967103fe97cfb8d00e9e0087d20e7 |