Skip to content

AstraLuma/xontrib-avox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

pip install xontrib-avox

or you can clone the repo with pip

pip install git+https://github.com/AstraLuma/xontrib-avox

Configuration

It's required to configure $PROJECT_DIRS:

$PROJECT_DIRS = ["~/code"]

To automatically load avox at startup, put

xontrib load autovox avox

in your .xonshrc

Avox respects $VIRTUALENV_HOME.