Commits

Anonymous committed 2f5af52

[svn r3322] rehashing has to be done for deactivation as well as activation

Comments (0)

Files changed (2)

support-files/activate.sh

         export PATH
         unset _OLD_VIRTUAL_PATH
     fi
+
+    # This should detect bash and zsh, which have a hash command that must
+    # be called to get it to forget past commands.  Without forgetting
+    # past commands the $PATH changes we made may not be respected
+    if [ -n "$BASH" -o -n "$ZSH_VERSION" ] ; then
+        hash -r
+    fi
+
     if [ -n "$_OLD_VIRTUAL_PS1" ] ; then
         PS1="$_OLD_VIRTUAL_PS1"
         export PS1
 
 ##file activate.sh
 ACTIVATE_SH = """
-eJx9VFFv2jAQfvevuIY9tNUg4rUTD1RDKlJHp4YxaW1lTHIhlhIb2Q4Znfbfdw6BpNA1D0ns+3z+
-/H137sE8kxZSmSMUpXWwQigtJlBJl0FgdWlihJVUoYid3AqHAVynRhewEja7Zj3Y6RJioZR2YEoF
-0kEiDcYu3zGW4GEVXF7BHwb0yBSeoK8g+MQf7r/yxfRx/mN8z7+P53cBvMAXcBmqGukfPz16D3pE
-4O+NNq4GHudKZdHB2aI6nsoPaUTD91hEwzMSBDzjEA0/pNCEiQFrIYfoZLZoiV0QLyIygkBplaB1
-pvRC4gm3HkSYp3AAXJzs3sp/2PcvI8f2QWkM5mKLysFWGClWOdquYW83Zqw5Y4fuKOC8M+Q8YOxM
-c9Jt71cz6CwIOb+dzvhs/G3C+U0D69rJTuXzybzutUbBkkoQlSgQulmXtWxE5lQqu8FYipyK1SKk
-2sCYZhQUYi3jpma1kSRCA0eEzLnNTRhWVTV4RScS3A5iXYRWp64SBkPhM4TsWCJPLaXnJaU8I/e8
-XL7A/gyYW2xXXv7nMFd7MFnXqTHysO5am+kyT8hmR9zrhgShEni12WeoMhlnkJHBIOhDIWJe+LDL
-hKt7ndJQt8ciz6nfnYa1rwrn/0gdP9gIuhCaZXYA8JPuBF26JuykWlOKNyCvN9ROQpwJtUYLFV0s
-pBy9duAvCdrSoPfCYcLaLrwdR9T/fb0f/Yru+GLyGE0fZic+1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