We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
deactivate
1 parent cee707f commit e76c9ecCopy full SHA for e76c9ec
virtualenvwrapper.sh
@@ -749,8 +749,9 @@ function workon {
749
750
# Deactivate any current environment "destructively"
751
# before switching so we use our override function,
752
- # if it exists.
753
- type deactivate >/dev/null 2>&1
+ # if it exists, but make sure it's the deactivate function
+ # we set up
754
+ type deactivate | grep 'typeset env_postdeactivate_hook' >/dev/null 2>&1
755
if [ $? -eq 0 ]
756
then
757
0 commit comments