Commits

Anonymous committed 8770139

[svn r3321] Detect zsh as well as bash in activate

  • Participants
  • Parent commits 9134a56

Comments (0)

Files changed (2)

File support-files/activate.sh

 fi
 export PS1
 
-# This should detect bash, which has 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" ] ; then
+# 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

File virtualenv.py

 
 ##file activate.sh
 ACTIVATE_SH = """
-eJx9VMFu2zAMvesrWGeHtlhj5NohhxQrsAJdNixZd2gLRbHpWIAtBRIdLxv676McJ3aTrj4IlvRI
-Pb1HagDzXHvIdIFQVp5giVB5TKHWlEPkbeUShKU2sUpIbxRhBJeZsyUslc8vxQC2toJEGWMJXGVA
-E6TaYULFVogU91FwfgF/BfCnM3iEKwPRB/nt/rN8uPsx/zm5l98n8y8RPMMnoBxNgwxfWB6/BT0g
-8PfaOmqAh7XKeCQ4CWr2M/0ujdnoLRaz0QkJBp5wmI3epdBuMwPRQfa7t9OHjtgZ82IiY4iMNSl6
-clUQEo+4DWCGRQZ7wNnR6Z38+3NfBDu229TOYaE2aAg2ymm1LND3DXt9sBDtHXt0x5GUvamUkRAn
-mrNuO7/aSS8glvLmbiqnk6+3Ul63sL6d4li+kCzo3mgULbgE0agSoZ910cjGZI6l8mtMtCq4WD1C
-Zh1MeMVAqVY6aWvWOs0itHBEyInW13Fc1/XwD5JKcTNMbBl7m1GtHMYqZIjFoUQeO0pPC055Qu5p
-sXiG3R2w8NhFnv/nMhc7MFvXqzH2sOlan9uqSNlmYu5NQ36EOtdJDrnyoMKYAxMulUlZCUVNi3M0
-N3miioLbnCysQjFQ+GNRwmSt+B1ow/wQ4Bc/BbYKcTsAabN6DQoyQ2MgJLkyK/RQ83vCgvGw5VJq
-D3UYTCBMRdd+N5PZceM3vK9cuPU/al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