Bash script to shortcut the source activate /path/to/venv/bin/activate command. This works for virtualenv environments that you put into a single folder - ~/venv is the default.
Note that I've only tried this on a mac.
- Download
vact.shto your home folder. - Edit the script to change
VENV_PATHif your virtualenvs are somewhere other than~/venv/. - Add the following alias (
~/.bash_aliasesor~/.profileor what-have-you):alias vact='source ~/bin/vact.sh'
Now you should be able to activate a virtual environment by using
$ vact python2env