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
Written by bohanzhang
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Python
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#