Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/AstraLuma/xontrib-avox
autovox policy based on project directories
https://github.com/AstraLuma/xontrib-avox
virtualenv xonsh xontrib
Last synced: 3 months ago
JSON representation
autovox policy based on project directories
- Host: GitHub
- URL: https://github.com/AstraLuma/xontrib-avox
- Owner: AstraLuma
- License: gpl-3.0
- Created: 2016-07-20T06:58:13.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-08-28T03:37:20.000Z (about 4 years ago)
- Last Synced: 2024-07-10T17:42:55.966Z (4 months ago)
- Topics: virtualenv, xonsh, xontrib
- Language: Python
- Homepage:
- Size: 31.3 KB
- Stars: 10
- Watchers: 1
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-xontribs - avox - Policy for autovox based on project directories. (Python virtual-environment management)
README
# xontrib-avox
Xontrib for Xonsh that automatically activates and deactivates virtual environments as you `cd` around. It's based on the idea of projects and projects living in specific directories.For example, if you've set `$PROJECT_DIRS = [p"~/code"]` and have the project directory `~/code/spam`, avox will use the venv name `spam`.
## Installation
Just do a
```console
pip install xontrib-avox
```or you can clone the repo with pip
```console
pip install git+https://github.com/AstraLuma/xontrib-avox
```## Configuration
It's required to configure `$PROJECT_DIRS`:
```console
$PROJECT_DIRS = ["~/code"]
```To automatically load avox at startup, put
```console
xontrib load autovox avox
```in your `.xonshrc`
Avox respects `$VIRTUALENV_HOME`.