aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md12
1 files changed, 11 insertions, 1 deletions
diff --git a/README.md b/README.md
index 21c5c92..5feedb6 100644
--- a/README.md
+++ b/README.md
@@ -12,11 +12,21 @@ Put the `venvworkon.sh` script somewhere and source it in your
## Usage
The script only supports one usage mode:
- $ workon [environment]
+ $ workon [environment] [python version]
If *environment* is not provided, then the list of existing venvs
will be printed instead.
+## Choosing the python version
+The python you want to use must exist in the `$PATH` and start with
+`python`. Pass the version suffix of the executable as the second
+argument to the script. It'll be translated like so when creating
+the venv:
+
+```
+workon foo 3.6 => python3.6 -m venv $WORKON_HOME/foo
+```
+
## Where venvs are created
When `workon` is called, venvs are created or loaded from the
`$HOME/.venv` folder by default.