Last Updated: February 25, 2017
·
314
· bohanzhang

Quickly activate your python env

## Run command blow

echo "alias s='function _source(){ source $1/bin/activate; };_source'" >> ~/.zshrc

How to use?

That's say if you have a python virtualenv call .venv/

just run

s .venv

instead of

source .venv/bin/activate