Skip to content

Commit dc06f76

Browse files
committed
document 'workon .' and give attribution
Change-Id: Ib62ce77cc8fb07e31df29ab44eb4f7bf84c7efaf
1 parent f32241d commit dc06f76

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/source/command_ref.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ List or change working virtual environments
238238

239239
Syntax::
240240

241-
workon [(-c|--cd)|(-n|--no-cd)] [environment_name]
241+
workon [(-c|--cd)|(-n|--no-cd)] [environment_name|"."]
242242

243243
If no ``environment_name`` is given the list of available environments
244244
is printed to stdout.
@@ -251,6 +251,10 @@ If ``-n`` or ``--no-cd`` is specified the working directory is **not**
251251
changed to the project directory during the post-activate phase,
252252
regardless of the value of ``VIRTUALENVWRAPPER_WORKON_CD``.
253253

254+
If ``"."`` is passed as the environment name, the name is derived from
255+
the base name of the current working directory (contributed by Matias
256+
Saguir).
257+
254258
::
255259

256260
$ workon

0 commit comments

Comments
 (0)