mirror of
https://github.com/starship/starship.git
synced 2026-06-22 02:02:12 +07:00
feat(python): Add detect env vars option (#4486)
feat(python): Configure different detect env vars Allow the env vars that trigger the python module to be configured, if an empty list is passed then the module will fall back to just triggering based on the configured files, folders and extensions.
This commit is contained in:
@@ -3673,6 +3673,7 @@ By default, the module will be shown if any of the following conditions are met:
|
||||
| `detect_extensions` | `['py']` | Which extensions should trigger this module |
|
||||
| `detect_files` | `['.python-version', 'Pipfile', '__init__.py', 'pyproject.toml', 'requirements.txt', 'setup.py', 'tox.ini']` | Which filenames should trigger this module |
|
||||
| `detect_folders` | `[]` | Which folders should trigger this module |
|
||||
| `detect_env_vars` | `["VIRTUAL_ENV"]` | Which environmental variables should trigger this module |
|
||||
| `disabled` | `false` | Disables the `python` module. |
|
||||
|
||||
::: tip
|
||||
|
||||
Reference in New Issue
Block a user