From ef80fa0bec2df62c2ea5469123b4ad794c7c9306 Mon Sep 17 00:00:00 2001 From: Baptiste Darthenay Date: Tue, 27 Dec 2016 20:33:59 +0100 Subject: Rename postload.sh to postactivate.sh. This is closer to the virtualenvwrapper naming. --- README.md | 6 +++--- venvworkon.sh | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index fc74104..3376c4b 100644 --- a/README.md +++ b/README.md @@ -23,9 +23,9 @@ When `workon` is called, venvs are created or loaded from the To change this behavior, set the `WORKON_HOME` environment variable before sourcing `venvworkon.sh`. -## Post-load script -If the file `$HOME/.venvs//postload.sh` exists, it is -automatically sourced after the venv is loaded. This is useful +## Post-activate script +If the file `$HOME/.venvs//postactivate.sh` exists, it is +automatically sourced after the venv is activated. This is useful to export environment variable such as `DJANGO_SETTINGS_MODULE`. ## Why bother using this diff --git a/venvworkon.sh b/venvworkon.sh index adca644..f6ac4ef 100755 --- a/venvworkon.sh +++ b/venvworkon.sh @@ -26,8 +26,8 @@ workon() { source "$envdir/bin/activate" - if [ -e "$envdir/postload.sh" ] + if [ -e "$envdir/postactivate.sh" ] then - source "$envdir/postload.sh" + source "$envdir/postactivate.sh" fi } -- cgit v1.2.3