Commits

Doug Hellmann committed b7d4fe3

reorg install docs to separate the customization stuff; add some comments about site-wide installation; fixes #87

Comments (0)

Files changed (1)

docs/en/install.rst

 
   $ pip install --install-option="--user" virtualenvwrapper
 
-WORKON_HOME
+.. _install-shell-config:
+
+Shell Startup File
+==================
+
+Add two lines to your shell startup file (``.bashrc``, ``.profile``,
+etc.) to set the location where the virtual environments should live
+and the location of the script installed with this package::
+
+    export WORKON_HOME=$HOME/.virtualenvs
+    source /usr/local/bin/virtualenvwrapper.sh
+
+After editing it, reload the startup file (e.g., run ``source
+~/.bashrc``).
+
+Quick-Start
 ===========
 
+1. Run: ``workon``
+2. A list of environments, empty, is printed.
+3. Run: ``mkvirtualenv temp``
+4. A new environment, ``temp`` is created and activated.
+5. Run: ``workon``
+6. This time, the ``temp`` environment is included.
+
+Customization
+=============
+
+WORKON_HOME
+-----------
+
 The variable ``WORKON_HOME`` tells virtualenvwrapper where to place
 your virtual environments.  The default is ``$HOME/.virtualenvs``. If
 the directory does not exist when virtualenvwrapper is loaded, it will
 .. _variable-VIRTUALENVWRAPPER_HOOK_DIR:
 
 VIRTUALENVWRAPPER_HOOK_DIR
-==========================
+--------------------------
 
 The variable ``VIRTUALENVWRAPPER_HOOK_DIR`` tells virtualenvwrapper
 where the user-defined hooks should be placed. The default is
 .. _variable-VIRTUALENVWRAPPER_LOG_DIR:
 
 VIRTUALENVWRAPPER_LOG_DIR
-==========================
+-------------------------
 
 The variable ``VIRTUALENVWRAPPER_LOG_DIR`` tells virtualenvwrapper
 where the user-defined logs should be written. The default is
 ``$WORKON_HOME``.
 
-.. _install-shell-config:
-
-Shell Startup File
-==================
-
-Add two lines to your shell startup file (``.bashrc``, ``.profile``,
-etc.) to set the location where the virtual environments should live
-and the location of the script installed with this package::
-
-    export WORKON_HOME=$HOME/.virtualenvs
-    source /usr/local/bin/virtualenvwrapper.sh
-
-After editing it, reload the startup file (e.g., run: ``source
-~/.bashrc``).
-
 .. _variable-VIRTUALENVWRAPPER_VIRTUALENV:
 
 .. _variable-VIRTUALENVWRAPPER_VIRTUALENV_ARGS:
 .. _variable-VIRTUALENVWRAPPER_PYTHON:
 
 Python Interpreter, virtualenv, and $PATH
-=========================================
+-----------------------------------------
 
 During startup, ``virtualenvwrapper.sh`` finds the first ``python``
 and ``virtualenv`` programs on the ``$PATH`` and remembers them to use
     source /usr/local/bin/virtualenvwrapper.sh
 
 Default Arguments for virtualenv
-================================
+--------------------------------
 
 If the application identified by ``VIRTUALENVWRAPPER_VIRTUALENV``
 needs arguments, they can be set in
 
     export VIRTUALENVWRAPPER_VIRTUALENV_ARGS='--no-site-packages'
 
-Quick-Start
-===========
-
-1. Run: ``workon``
-2. A list of environments, empty, is printed.
-3. Run: ``mkvirtualenv temp``
-4. A new environment, ``temp`` is created and activated.
-5. Run: ``workon``
-6. This time, the ``temp`` environment is included.
-
 Temporary Files
-===============
+---------------
 
 virtualenvwrapper creates temporary files in ``$TMPDIR``.  If the
 variable is not set, it uses ``/tmp``.  To change the location of
 temporary files just for virtualenvwrapper, set
 ``VIRTUALENVWRAPPER_TMPDIR``.
 
+Site-wide Configuration
+-----------------------
+
+Most UNIX systems include the ability to change the configuration for
+all users. This typically takes one of two forms: editing the
+*skeleton* files for new accounts or editing the global startup file
+for a shell.
+
+Editing the skeleton files for new accounts means that each new user
+will have their private startup files preconfigured to load
+virtualenvwrapper. They can disable it by commenting out or removing
+those lines. Refer to the documentation for the shell and operating
+system to identify the appropriate file to edit.
+
+Modifying the global startup file for a given shell means that all
+users of that shell will have virtualenvwrapper enabled, and they
+cannot disable it. Refer to the documentation for the shell to
+identify the appropriate file to edit.
+
 Upgrading from 1.x
 ==================
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.