v4.7.0: Virtualenv feature flag and customization symbol
What's Changed
- feat(python): add feature flag to control virtualenv behavior by @edouard-lopez in #325
🐍 Add feature flag and customization symbol for Virtualenv
Preview
Configuration
Option | Default | Description |
---|---|---|
pure_symbol_virtualenv_prefix |
Prefix when a Python virtual env is activated (default: undefined) | |
pure_enable_virtualenv |
true |
Show virtual env name (based on VIRTUAL_ENV or CONDA_DEFAULT_ENV ). |
Default Behaviour: true
❯ set --universal pure_enable_virtualenv true
Feature Enable: true
❯ set --universal pure_enable_virtualenv true
❯ set --universal pure_symbol_virtualenv_prefix "🐍 "
Then activate a virtualenv or simulate one:
❯ set VIRTUAL_ENV /home/test/fake/project/ # simulate virtualenv
~/projects/contributions/pure master ≡
🐍 project ❯
pure_enable_virtualenv.webm
⬇️ Installation
fisher install pure-fish/pure
👏 Thanks
Full Changelog: v4.6.4...v4.7.0