Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(100)

Side by Side Diff: bootstrap/virtualenv/virtualenv_embedded/activate.csh

Issue 1205873002: Re-land: Added virtualenv for depot_tools (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Restore cd commands Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 # This file must be used with "source bin/activate.csh" *from csh*.
2 # You cannot run it directly.
3 # Created by Davide Di Blasi <davidedb@gmail.com>.
4
5 alias deactivate 'test $?_OLD_VIRTUAL_PATH != 0 && setenv PATH "$_OLD_VIRTUAL_PA TH" && unset _OLD_VIRTUAL_PATH; rehash; test $?_OLD_VIRTUAL_PROMPT != 0 && set p rompt="$_OLD_VIRTUAL_PROMPT" && unset _OLD_VIRTUAL_PROMPT; unsetenv VIRTUAL_ENV; test "\!:*" != "nondestructive" && unalias deactivate && unalias pydoc'
6
7 # Unset irrelevant variables.
8 deactivate nondestructive
9
10 setenv VIRTUAL_ENV "__VIRTUAL_ENV__"
11
12 set _OLD_VIRTUAL_PATH="$PATH"
13 setenv PATH "$VIRTUAL_ENV/__BIN_NAME__:$PATH"
14
15
16
17 if ("__VIRTUAL_PROMPT__" != "") then
18 set env_name = "__VIRTUAL_PROMPT__"
19 else
20 if (`basename "$VIRTUAL_ENV"` == "__") then
21 # special case for Aspen magic directories
22 # see http://www.zetadev.com/software/aspen/
23 set env_name = `basename \`dirname "$VIRTUAL_ENV"\``
24 else
25 set env_name = `basename "$VIRTUAL_ENV"`
26 endif
27 endif
28
29 # Could be in a non-interactive environment,
30 # in which case, $prompt is undefined and we wouldn't
31 # care about the prompt anyway.
32 if ( $?prompt ) then
33 set _OLD_VIRTUAL_PROMPT="$prompt"
34 set prompt = "[$env_name] $prompt"
35 endif
36
37 unset env_name
38
39 alias pydoc python -m pydoc
40
41 rehash
42
OLDNEW
« no previous file with comments | « bootstrap/virtualenv/virtualenv_embedded/activate.bat ('k') | bootstrap/virtualenv/virtualenv_embedded/activate.fish » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698