Interactive terminal selectors for Conda environments and Python venvs, with arrow-key navigation, creation, deletion, and activation — all in one command.
npm i -g venv-manager
cvem # Conda env selector
pvem # Python venv selector
# Or use directly without install:
source <(curl -fsSL https://cdn.jsdelivr.net/gh/theajack/venv-manager/scripts/cvem.sh)
source <(curl -fsSL https://cdn.jsdelivr.net/gh/theajack/venv-manager/scripts/pvem.sh)| Command | Description |
|---|---|
cvem |
Conda environment selector — list / create / delete / activate conda envs |
pvem |
Python venv selector — find / create / delete / activate venvs |
Run directly via jsDelivr CDN — nothing to install:
# Conda environment selector
source <(curl -fsSL https://cdn.jsdelivr.net/gh/theajack/venv-manager/scripts/cvem.sh)
# Python venv selector
source <(curl -fsSL https://cdn.jsdelivr.net/gh/theajack/venv-manager/scripts/pvem.sh)npm install -g venv-managerAfter installation, the postinstall script automatically adds cvem and pvem shell functions to your ~/.zshrc or ~/.bashrc.
Open a new terminal (or run source ~/.zshrc) and then:
# Conda environment selector
cvem
# Python venv selector
pvemIf the auto-setup didn't run, you can trigger it manually:
vem-setupOr add the functions yourself:
# Add to ~/.zshrc or ~/.bashrc
cvem() { source "$(npm prefix -g)/lib/node_modules/venv-manager/scripts/cvem.sh"; }
pvem() { source "$(npm prefix -g)/lib/node_modules/venv-manager/scripts/pvem.sh"; }↑/↓ Navigate
Enter Activate selected environment
n Create new environment (with Python version selector)
d Delete selected environment
q Quit
Searches for venvs in the current directory (depth 3) and common locations (~/.venvs, ~/venvs, ~/.virtualenvs).
↑/↓ Navigate
Enter Activate selected venv
n Create new venv (with Python interpreter selector)
d Delete selected venv
q Quit
- bash or zsh
cvem: conda installed and available in PATHpvem: Python 3 withvenvmodule
MIT