Skip to content

Commit

Permalink
fix: ps: reenable python venv
Browse files Browse the repository at this point in the history
  • Loading branch information
JPHutchins committed Jul 26, 2024
1 parent 424cd49 commit ed32d8e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions envr.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -742,6 +742,15 @@ $global:_ENVR_PATH_ADDITIONS.GetEnumerator().ForEach({
$Env:PATH = "$path_addition$([System.IO.Path]::PathSeparator)$Env:PATH"
})

# Activate the python venv if specified
if (-not $global:_ENVR_PYTHON_VENV -eq "") {
if (-not $Env:ENVIRONMENT_DISABLE_PROMPT) {
# We're going to set envr prompt; disable the python (venv) prompt
Set-Item -Path env:VIRTUAL_ENV_DISABLE_PROMPT -Value "true"
}
. "$global:_ENVR_PYTHON_VENV/Scripts/Activate.ps1"
}

# Set the prompt prefix
if (-not $Env:ENVIRONMENT_DISABLE_PROMPT) {

Expand Down

0 comments on commit ed32d8e

Please sign in to comment.