Mercurial > repos > guerler > hhblits
comparison bin/activate.csh @ 1:64071f2a4cf0 draft default tip
Deleted selected files
author | guerler |
---|---|
date | Mon, 27 Jul 2020 03:55:49 -0400 |
parents | 9e54283cc701 |
children |
comparison
equal
deleted
inserted
replaced
0:9e54283cc701 | 1:64071f2a4cf0 |
---|---|
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 set newline='\ | |
6 ' | |
7 | |
8 alias deactivate 'test $?_OLD_VIRTUAL_PATH != 0 && setenv PATH "$_OLD_VIRTUAL_PATH:q" && unset _OLD_VIRTUAL_PATH; rehash; test $?_OLD_VIRTUAL_PROMPT != 0 && set prompt="$_OLD_VIRTUAL_PROMPT:q" && unset _OLD_VIRTUAL_PROMPT; unsetenv VIRTUAL_ENV; test "\!:*" != "nondestructive" && unalias deactivate && unalias pydoc' | |
9 | |
10 # Unset irrelevant variables. | |
11 deactivate nondestructive | |
12 | |
13 setenv VIRTUAL_ENV '/Users/guerler/hh-suite' | |
14 | |
15 set _OLD_VIRTUAL_PATH="$PATH:q" | |
16 setenv PATH "$VIRTUAL_ENV:q/bin:$PATH:q" | |
17 | |
18 | |
19 | |
20 if ('' != "") then | |
21 set env_name = '' | |
22 else | |
23 set env_name = '('"$VIRTUAL_ENV:t:q"') ' | |
24 endif | |
25 | |
26 if ( $?VIRTUAL_ENV_DISABLE_PROMPT ) then | |
27 if ( $VIRTUAL_ENV_DISABLE_PROMPT == "" ) then | |
28 set do_prompt = "1" | |
29 else | |
30 set do_prompt = "0" | |
31 endif | |
32 else | |
33 set do_prompt = "1" | |
34 endif | |
35 | |
36 if ( $do_prompt == "1" ) then | |
37 # Could be in a non-interactive environment, | |
38 # in which case, $prompt is undefined and we wouldn't | |
39 # care about the prompt anyway. | |
40 if ( $?prompt ) then | |
41 set _OLD_VIRTUAL_PROMPT="$prompt:q" | |
42 if ( "$prompt:q" =~ *"$newline:q"* ) then | |
43 : | |
44 else | |
45 set prompt = "$env_name:q$prompt:q" | |
46 endif | |
47 endif | |
48 endif | |
49 | |
50 unset env_name | |
51 unset do_prompt | |
52 | |
53 alias pydoc python -m pydoc | |
54 | |
55 rehash |