python - How do I get into my virtualenv quicker? Custom commands? -
everytime want terminal have type sequence in terminal (im on mac osx lion terminal):
>public/projects/installs # location of venv >. venv/bin/activate # activates venv within terminal
is anyway faster or create custom function/ command in terminal?
there virtualenvwrapper. allows switch virtualenvs typing workon <env_name>
. create virtualenvs mkvirtualenv <env_name>
or mkproject <project_name>
if have set project_home
, want working directory there.
you can lot more switch venvs, though. example can set hooks performed every new venv (installing ipython if want to, set .hgignore) , when activating 1 (e.g. setting path
if have things installed via npm).
Comments
Post a Comment