Notepad/enter/Coding Tips (Classical)/Terminal Tips/1. Terminals/Shells/xonsh/Xontrib-avox.md

652 B

Xontrib-avox

This is a way to activate new environments and unactivate environments as you cd around projects. This is a lot more useful than conda as it treats projects as directories (similar to how obsidian works) .

Example:

  1. setting a project as $PROJECT_DIRS = [p'~/code']
  2. setting a project directory as ~/code/spam
  3. avox then will use the venv name as spam

Installation

pip install xontrib-avox

or just clone the original repo with pip.

Configuration

You must configure $PROJECT_DIRS by:

$PROJECT_DIRS = ["~/code"]