aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBaptiste Darthenay <baptiste@darthenay.fr>2016-12-27 20:33:59 +0100
committerBaptiste Darthenay <baptiste@darthenay.fr>2016-12-27 20:33:59 +0100
commitef80fa0bec2df62c2ea5469123b4ad794c7c9306 (patch)
treedcdfe5f39e5692877b881713649476fcf4d3f0c2
parentb5775083a1fe12b3393789ad6b4ea67c67112558 (diff)
Rename postload.sh to postactivate.sh.
This is closer to the virtualenvwrapper naming.
-rw-r--r--README.md6
-rwxr-xr-xvenvworkon.sh4
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/<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`.
## 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
}