From 40e767b6d36518de4f10f0869aeb71d5dd274f84 Mon Sep 17 00:00:00 2001 From: JC Brand Date: Wed, 23 Jul 2014 19:11:06 +0200 Subject: [PATCH] Tweak activation script --- activate | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/activate b/activate index 37a54ec4e..92b4361d1 100755 --- a/activate +++ b/activate @@ -9,13 +9,6 @@ deactivate () { 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 @@ -32,7 +25,7 @@ deactivate () { # unset irrelavent variables deactivate nondestructive -VIRTUAL_ENV="/home/jc/dev/converse.js" +VIRTUAL_ENV="~/converse.js" export VIRTUAL_ENV _OLD_VIRTUAL_PATH="$PATH" @@ -54,10 +47,3 @@ if [ -z "$VIRTUAL_ENV_DISABLE_PROMPT" ] ; then fi export PS1 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