docs(faq): add missing period and simplify language

This commit is contained in:
Aniket Teredesai 2021-12-24 17:08:28 +05:30 committed by GitHub
parent 4e52382960
commit cde9a8404b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -138,11 +138,11 @@ To solely rely on Oh My Posh to set the prompt, you can configure the follwing s
conda config --set changeps1 False conda config --set changeps1 False
``` ```
### Python venv: Prompt is changed to display the environment name ### Python venv: Prompt changes on activating virtual environment
Upon activation, virtual environments created with `venv` change the prompt to add the activated environment's name. Virtual environments created with `venv` add the active environment's name to the prompt automatically.
To disable this behaviour, set `VIRTUAL_ENV_DISABLE_PROMPT` environment variable to `1` on your system. Example commands to run, with probable file locations you'll have to put them in for auto-loading: To disable this behaviour, set `VIRTUAL_ENV_DISABLE_PROMPT` environment variable to `1` on your system. Example files:
Note: Tilde (~) in paths here refers to your user's home directory. Note: Tilde (~) in paths refers to your user's home directory.
<Tabs <Tabs
defaultValue="powershell" defaultValue="powershell"
@ -156,7 +156,7 @@ Note: Tilde (~) in paths here refers to your user's home directory.
<TabItem value="powershell"> <TabItem value="powershell">
```powershell ```powershell
# powershell - ~/Documents/WindowsPowerShell/profile.ps1 # ~/Documents/WindowsPowerShell/profile.ps1
$env:VIRTUAL_ENV_DISABLE_PROMPT=1 $env:VIRTUAL_ENV_DISABLE_PROMPT=1
``` ```
@ -164,7 +164,7 @@ $env:VIRTUAL_ENV_DISABLE_PROMPT=1
<TabItem value="fish"> <TabItem value="fish">
```fish ```fish
#fish - ~/.config/fish/config.fish # ~/.config/fish/config.fish
set -x VIRTUAL_ENV_DISABLE_PROMPT 1 set -x VIRTUAL_ENV_DISABLE_PROMPT 1
``` ```
@ -172,7 +172,7 @@ set -x VIRTUAL_ENV_DISABLE_PROMPT 1
<TabItem value="others"> <TabItem value="others">
```bash ```bash
# bash, zsh - ~/bashrc or ~/.zprofile ~/.zshrc # ~/.bashrc (bash) or ~/.zprofile or ~/.zshrc (zsh)
export VIRTUAL_ENV_DISABLE_PROMPT=1 export VIRTUAL_ENV_DISABLE_PROMPT=1
``` ```