Aller au contenu

Virtualenv venv

Info

virtualenv is a tool to create isolated Python environments.

The venv section shows the current virtualenv name.

Configuring generic names

For better readability, you can configure the generic names for your virtualenvs. If the virtualenv folder is in SPACESHIP_VENV_GENERIC_NAMES array, than use its parent directory as its name instead.

.zshrc
SPACESHIP_VENV_GENERIC_NAMES=(virtualenv venv .venv generic-name)

Options

Variable Default Meaning
SPACESHIP_VENV_SHOW true Show section
SPACESHIP_VENV_ASYNC false Render section asynchronously
SPACESHIP_VENV_PREFIX $SPACESHIP_PROMPT_DEFAULT_PREFIX Section's prefix
SPACESHIP_VENV_SUFFIX $SPACESHIP_PROMPT_DEFAULT_SUFFIX Section's suffix
SPACESHIP_VENV_SYMBOL · Symbol displayed before the section
SPACESHIP_VENV_GENERIC_NAMES (virtualenv venv .venv) Generic folder names. Parent folder will be used as name instead
SPACESHIP_VENV_COLOR blue Section's color