Skip to content

Commit 9a221d0

Browse files
committed
add small section about autoenv, asked for in realpython#97
1 parent 911d829 commit 9a221d0

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

docs/dev/virtualenvs.rst

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,3 +137,21 @@ Other useful commands
137137
Shows contents of ``site-packages`` directory.
138138

139139
`Full list of virtualenvwrapper commands <http://www.doughellmann.com/docs/virtualenvwrapper/command_ref.html#managing-environments>`_.
140+
141+
autoenv
142+
-------
143+
When you ``cd`` into a directory containing a ``.env`` `autoenv <https://github.com/kennethreitz/autoenv>`_
144+
automagically activates the environment.
145+
146+
Install it on Mac OS X using ``brew``:
147+
148+
.. code-block:: console
149+
150+
$ brew install autoenv
151+
152+
And on Linux:
153+
154+
.. code-block:: console
155+
156+
$ git clone git://github.com/kennethreitz/autoenv.git ~/.autoenv
157+
$ echo 'source ~/.autoenv/activate.sh' >> ~/.bashrc

0 commit comments

Comments
 (0)