A zsh plugin to launch a Python venv. Designed with dotpyvenv in mind.
- Launch a Python venv in current directory or mkcd a new directory.
- Create .pyvenvdir to point to venv directory.
- Specify Python version.
- Add venv to .gitignore.
git clone https://github.com/ACmyles/pyvenv-fast.git $ZSH_CUSTOM/plugins/pyvenv-fast
Add pyvenv-fast to plugins in .zshrc
.
pv [-g] [-v ...] directory
Option | Argument | Purpose |
---|---|---|
-g |
None | Append new venv to .gitignore. |
-v |
python 3.x | Specify Python version. |
pv new_project
pv -g .
pv -v python3.7 .
pv -g -v python3.7 new_project