diff options
author | Guillaume <g@bitimplosion.com> | 2016-12-28 16:02:11 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-28 16:02:11 +0000 |
commit | bf8afa62e0e788b5a6b3ad32cbf18bd6374fb92c (patch) | |
tree | 2e19db8da7ddc5168a1858f2aa9dd41e9f9c863c /README.md | |
parent | e33cb3f849dc32e5c0f083ac5f1394dc792b32a1 (diff) | |
parent | 84cf9821e256ee2458568e03a9548702b14af26b (diff) |
Merge pull request #1 from batisteo/virtualenv-envvar
Using WORKON_HOME and rename postload.sh
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 15 |
1 files changed, 11 insertions, 4 deletions
@@ -19,13 +19,20 @@ will be printed instead. ## Where venvs are created When `workon` is called, venvs are created or loaded from the -`$HOME/.venvs` folder. +`$HOME/.venvs` folder by default. +To change this behavior, set the `WORKON_HOME` environment +variable before sourcing `venvworkon.sh`. -## Post-load script -If the file `$HOME/.venvs/<venv>/postload.sh` exists, it is -automatically sourced after the venv is loaded. This is useful +## Post-activate script +If the file `$HOME/.venvs/<venv>/postactivate.sh` exists, it is +automatically sourced after the venv is activated. This is useful to export environment variable such as `DJANGO_SETTINGS_MODULE`. +## Project directory +If `PROJECT_HOME` is set (e.g. `$HOME/Projects`) and there is +a project folder which match the environment name, venvworkon +change the current working directory to the project directory. + ## Why bother using this `virtualenvwrapper` is certainly much more feature-packed and useful than this. But this wrapper is handy for development and |