Skip to content

Commit

Permalink
update shell command in docs (#4132)
Browse files Browse the repository at this point in the history
* update shell command 

according to [SC2006](https://github.com/koalaman/shellcheck/wiki/SC2006):
> Backtick command substitution `...` is legacy syntax with several issues.

* merge updated table markdown
  • Loading branch information
mcnesium committed Jul 23, 2021
1 parent f32c8d4 commit c5cee34
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/basic-usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,11 @@ To get the path to your virtual environment run `poetry env info --path`.
You can also combine these into a nice one-liner, `source $(poetry env info --path)/bin/activate`
To deactivate this virtual environment simply use `deactivate`.

| | POSIX Shell | Windows | Exit/Deactivate |
| ----------------- | -------------------------------------------------- | ------------------------------------- | --------------- |
| New Shell | `poetry shell` | `poetry shell` | `exit` |
| Manual Activation | `source {path_to_venv}/bin/activate` | `{path_to_venv}\Scripts\activate.bat` | `deactivate` |
| One-liner | ```source `poetry env info --path`/bin/activate``` | | `deactivate` |
| | POSIX Shell | Windows | Exit/Deactivate |
| ----------------- | ----------------------------------------------- | ------------------------------------- | --------------- |
| New Shell | `poetry shell` | `poetry shell` | `exit` |
| Manual Activation | `source {path_to_venv}/bin/activate` | `{path_to_venv}\Scripts\activate.bat` | `deactivate` |
| One-liner | `source $(poetry env info --path)/bin/activate` | | `deactivate` |


### Version constraints
Expand Down

0 comments on commit c5cee34

Please sign in to comment.