Răsfoiți Sursa

Tweak activation script

JC Brand 11 ani în urmă
părinte
comite
40e767b6d3
1 a modificat fișierele cu 1 adăugiri și 15 ștergeri
  1. 1 15
      activate

+ 1 - 15
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