Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | # This file must be used with "source bin/activate.csh" *from csh*. |
michael@0 | 2 | # You cannot run it directly. |
michael@0 | 3 | # Created by Davide Di Blasi <davidedb@gmail.com>. |
michael@0 | 4 | |
michael@0 | 5 | alias deactivate 'test $?_OLD_VIRTUAL_PATH != 0 && setenv PATH "$_OLD_VIRTUAL_PATH" && unset _OLD_VIRTUAL_PATH; rehash; test $?_OLD_VIRTUAL_PROMPT != 0 && set prompt="$_OLD_VIRTUAL_PROMPT" && unset _OLD_VIRTUAL_PROMPT; unsetenv VIRTUAL_ENV; test "\!:*" != "nondestructive" && unalias deactivate && unalias pydoc' |
michael@0 | 6 | |
michael@0 | 7 | # Unset irrelevant variables. |
michael@0 | 8 | deactivate nondestructive |
michael@0 | 9 | |
michael@0 | 10 | setenv VIRTUAL_ENV "__VIRTUAL_ENV__" |
michael@0 | 11 | |
michael@0 | 12 | set _OLD_VIRTUAL_PATH="$PATH" |
michael@0 | 13 | setenv PATH "$VIRTUAL_ENV/__BIN_NAME__:$PATH" |
michael@0 | 14 | |
michael@0 | 15 | |
michael@0 | 16 | |
michael@0 | 17 | if ("__VIRTUAL_PROMPT__" != "") then |
michael@0 | 18 | set env_name = "__VIRTUAL_PROMPT__" |
michael@0 | 19 | else |
michael@0 | 20 | if (`basename "$VIRTUAL_ENV"` == "__") then |
michael@0 | 21 | # special case for Aspen magic directories |
michael@0 | 22 | # see http://www.zetadev.com/software/aspen/ |
michael@0 | 23 | set env_name = `basename \`dirname "$VIRTUAL_ENV"\`` |
michael@0 | 24 | else |
michael@0 | 25 | set env_name = `basename "$VIRTUAL_ENV"` |
michael@0 | 26 | endif |
michael@0 | 27 | endif |
michael@0 | 28 | |
michael@0 | 29 | # Could be in a non-interactive environment, |
michael@0 | 30 | # in which case, $prompt is undefined and we wouldn't |
michael@0 | 31 | # care about the prompt anyway. |
michael@0 | 32 | if ( $?prompt ) then |
michael@0 | 33 | set _OLD_VIRTUAL_PROMPT="$prompt" |
michael@0 | 34 | set prompt = "[$env_name] $prompt" |
michael@0 | 35 | endif |
michael@0 | 36 | |
michael@0 | 37 | unset env_name |
michael@0 | 38 | |
michael@0 | 39 | alias pydoc python -m pydoc |
michael@0 | 40 | |
michael@0 | 41 | rehash |
michael@0 | 42 |