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-pathsinit 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 using pip
pip install xontrib-langenv
Add to your .xonshrc as follows:
xontrib load pyenvThis xontrib initializes pyenv when xonsh is started.
After initialization pyenv commands works as they would do in any classic shell.
Also supports pyenv-virtualenv.
xontrib load nodenvThis xontrib initializes nodenv when xonsh is started.
After initialization nodenv commands works as they would do in any classic shell.
xontrib load goenvThis xontrib initializes goenv when xonsh is started.
After initialization goenv commands works as they would do in any classic shell.
xontrib load rbenvThis xontrib initializes rbenv when xonsh is started.
After initialization rbenv commands works as they would do in any classic shell.
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.