Tweak activation script

This commit is contained in:
JC Brand 2014-07-23 19:11:06 +02:00
parent 482d09777c
commit 40e767b6d3

View File

@ -9,13 +9,6 @@ deactivate () {
unset _OLD_VIRTUAL_PATH unset _OLD_VIRTUAL_PATH
fi 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 if [ -n "$_OLD_VIRTUAL_PS1" ] ; then
PS1="$_OLD_VIRTUAL_PS1" PS1="$_OLD_VIRTUAL_PS1"
export PS1 export PS1
@ -32,7 +25,7 @@ deactivate () {
# unset irrelavent variables # unset irrelavent variables
deactivate nondestructive deactivate nondestructive
VIRTUAL_ENV="/home/jc/dev/converse.js" VIRTUAL_ENV="~/converse.js"
export VIRTUAL_ENV export VIRTUAL_ENV
_OLD_VIRTUAL_PATH="$PATH" _OLD_VIRTUAL_PATH="$PATH"
@ -54,10 +47,3 @@ if [ -z "$VIRTUAL_ENV_DISABLE_PROMPT" ] ; then
fi fi
export PS1 export PS1
fi 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