mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2026-12-01 21:03:02 +01:00
docs(python): add PYTHON_AUTO_VRUN to settings (#14233)
This commit is contained in:
1 parent
03ba23c9f6
commit
5873e1cfec
1 file changed
+9
@@ -46,6 +46,7 @@ You can set these variables in your `.zshrc` file, before Oh My Zsh is sourced.
|
|||||||
For example:
|
For example:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
|
PYTHON_AUTO_VRUN=true
|
||||||
PYTHON_VENV_NAME=".venv"
|
PYTHON_VENV_NAME=".venv"
|
||||||
PYTHON_VENV_NAMES=($PYTHON_VENV_NAME venv)
|
PYTHON_VENV_NAMES=($PYTHON_VENV_NAME venv)
|
||||||
...
|
...
|
||||||
@@ -54,6 +55,14 @@ source "$ZSH/oh-my-zsh.sh"
|
|||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
## `$PYTHON_AUTO_VRUN`
|
||||||
|
|
||||||
|
**Default**: `false`.
|
||||||
|
|
||||||
|
Enable automatic activation of virtual environments when entering a directory containing
|
||||||
|
`<venv-name>/bin/activate`, and automatically deactivate it when navigating out of it.
|
||||||
|
Set to `true` to enable this feature.
|
||||||
|
|
||||||
## `$PYTHON_VENV_NAME`
|
## `$PYTHON_VENV_NAME`
|
||||||
|
|
||||||
**Default**: `venv`.
|
**Default**: `venv`.
|
||||||
|
|||||||
Reference in new issue
Block a user