Easier workflow for python virutalenvs.
Better version available here.
This is because sourcing of venv cannot be put into a script but has to be in a shell function
Also dropped dependency onvirtualenvwrapper
Dependencies:
fzf- Fuzzy file finderpyenv- Install any python versionvirtualenvwrapper- Better virtualenv
Copy over venv to somewhere in $PATH and make it executable.
curl 'https://raw.githubusercontent.com/meain/venv/master/venv' -o /usr/local/bin/venv
chmod +x /usr/local/bin/venv
- Run
venv - Choose python version or choose
OTHERto install new one from pyenv - Name your virtualenv ( you could give the name along with the command like
venv myvenv) - You are good to go
You can set default python version by setting DEFAULT_VENV_PYTHON_VERSION.
So if you wanna use 3.7.1 do
DEFAULT_VENV_PYTHON_VERSION="3.7.1"
If you do not set anything it uses
3.6.6
