Skip to content

Commit e07bbdd

Browse files
committed
docs: remove broken link from tips list
Also clean up trailing whitespace.
1 parent ae23b71 commit e07bbdd

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

docs/source/tips.rst

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ While the virtualenv ``activate`` script does attempt to provide
1919
an indicator in the prompt, it has various shortcomings, and
2020
cannot 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
2424
built-in prompt indicator and substituting an improved one,
2525
as 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
116116
activates the environment named within. On leaving that directory,
117117
the 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-
123119
Installing Common Tools Automatically in New Environments
124120
=========================================================
125121

0 commit comments

Comments
 (0)