@@ -19,15 +19,15 @@ While the virtualenv ``activate`` script does attempt to provide
1919an indicator in the prompt, it has various shortcomings, and
2020cannot be customized.
2121
22- However, it does also set a shell variable named
22+ However, it does also set a shell variable named
2323``VIRTUAL_ENV `` which can be used as the basis for disabling the
2424built-in prompt indicator and substituting an improved one,
2525as a customization to ``.bashrc `` or ``.zshrc ``::
2626
2727 virtualenv_prompt() {
2828 # If not in a virtualenv, print nothing
2929 [[ "$VIRTUAL_ENV" == "" ]] && return
30-
30+
3131 # Distinguish between the shell where the virtualenv was activated
3232 # and its children
3333 local venv_name="${VIRTUAL_ENV##*/}"
@@ -37,7 +37,7 @@ as a customization to ``.bashrc`` or ``.zshrc``::
3737 echo "<${venv_name}> "
3838 fi
3939 }
40-
40+
4141 # Display a "we are in a virtualenv" indicator that works in child shells too
4242 VIRTUAL_ENV_DISABLE_PROMPT=1
4343 PS1='$(virtualenv_prompt)'"$PS1"
@@ -116,10 +116,6 @@ directory each time he runs ``cd``. If it finds a ``.venv`` file, it
116116activates the environment named within. On leaving that directory,
117117the current virtualenv is automatically deactivated.
118118
119- `Harry Marr <http://hmarr.com/about/ >`__
120- wrote a similar function that works with `git repositories
121- <http://hmarr.com/2010/jan/19/making-virtualenv-play-nice-with-git/> `__.
122-
123119Installing Common Tools Automatically in New Environments
124120=========================================================
125121
0 commit comments