Mercurial > repos > shellac > guppy_basecaller
comparison env/lib/python3.7/site-packages/virtualenv/activation/cshell/activate.csh @ 0:26e78fe6e8c4 draft
"planemo upload commit c699937486c35866861690329de38ec1a5d9f783"
| author | shellac |
|---|---|
| date | Sat, 02 May 2020 07:14:21 -0400 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:26e78fe6e8c4 |
|---|---|
| 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 '__VIRTUAL_ENV__' | |
| 14 | |
| 15 set _OLD_VIRTUAL_PATH="$PATH:q" | |
| 16 setenv PATH "$VIRTUAL_ENV:q/__BIN_NAME__:$PATH:q" | |
| 17 | |
| 18 | |
| 19 | |
| 20 if ('__VIRTUAL_PROMPT__' != "") then | |
| 21 set env_name = '__VIRTUAL_PROMPT__' | |
| 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 |
