{"id":13638310,"url":"https://github.com/dyuri/xontrib-langenv","last_synced_at":"2025-07-14T22:30:39.402Z","repository":{"id":36460658,"uuid":"223733943","full_name":"dyuri/xontrib-langenv","owner":"dyuri","description":"pyenv integration for xonsh","archived":false,"fork":false,"pushed_at":"2024-08-13T18:44:50.000Z","size":37,"stargazers_count":13,"open_issues_count":2,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-09T08:39:19.424Z","etag":null,"topics":["pyenv","xonsh","xontrib"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dyuri.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-11-24T11:34:41.000Z","updated_at":"2024-10-18T09:34:59.000Z","dependencies_parsed_at":"2024-11-09T08:32:12.102Z","dependency_job_id":"d93de4ce-9e81-4017-9681-95f1e73a5c82","html_url":"https://github.com/dyuri/xontrib-langenv","commit_stats":{"total_commits":43,"total_committers":3,"mean_commits":"14.333333333333334","dds":0.5348837209302326,"last_synced_commit":"4d81db1342405dd84f961534f777d1c4537ecb91"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyuri%2Fxontrib-langenv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyuri%2Fxontrib-langenv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyuri%2Fxontrib-langenv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyuri%2Fxontrib-langenv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dyuri","download_url":"https://codeload.github.com/dyuri/xontrib-langenv/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226001056,"owners_count":17557893,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["pyenv","xonsh","xontrib"],"created_at":"2024-08-02T01:00:43.909Z","updated_at":"2024-11-23T04:26:28.180Z","avatar_url":"https://github.com/dyuri.png","language":"Python","funding_links":[],"categories":["Integrations"],"sub_categories":["Prompt tweaks"],"readme":"# xontrib-langenv\n\n[xonsh](https://xon.sh) integration with:\n\n* [Pyenv](https://github.com/pyenv/pyenv)\n* [Nodenv](https://github.com/nodenv/nodenv)\n* [Goenv](https://github.com/syndbg/goenv)\n* [Rbenv](https://github.com/rbenv/rbenv)\n\nThis 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`\n\nThe only two exceptions are:\n\n  - `goenv`, which requires an extra `rehash --only-manage-paths` [init step](https://github.com/syndbg/goenv/blob/e1007619dbb180c8f8032a9dcdb7afbeb88e848a/libexec/goenv-init#L167) to set some more [environment variables](https://github.com/syndbg/goenv/blob/e1007619dbb180c8f8032a9dcdb7afbeb88e848a/libexec/goenv-sh-rehash#L24)\n  - `virtualenv-init`\n\nso 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!\n\n## Install\n\nInstall using pip\n\n```\npip install xontrib-langenv\n```\n\n## Usage\n\nAdd to your `.xonshrc` as follows:\n\n### Pyenv\n\n```sh\nxontrib load pyenv\n```\n\nThis xontrib initializes `pyenv` when `xonsh` is started.\nAfter initialization `pyenv` commands works as they would do in any *classic* shell.\n\nAlso supports [pyenv-virtualenv](https://github.com/pyenv/pyenv-virtualenv).\n\n### Nodenv\n\n```sh\nxontrib load nodenv\n```\n\nThis xontrib initializes `nodenv` when `xonsh` is started.\nAfter initialization `nodenv` commands works as they would do in any *classic* shell.\n\n### Goenv\n\n```sh\nxontrib load goenv\n```\n\nThis xontrib initializes `goenv` when `xonsh` is started.\nAfter initialization `goenv` commands works as they would do in any *classic* shell.\n\n### Rbenv\n\n```sh\nxontrib load rbenv\n```\n\nThis xontrib initializes `rbenv` when `xonsh` is started.\nAfter initialization `rbenv` commands works as they would do in any *classic* shell.\n\n## Compatibility notes\n\nIf 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.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdyuri%2Fxontrib-langenv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdyuri%2Fxontrib-langenv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdyuri%2Fxontrib-langenv/lists"}