• Home
  • Raw
  • Download

Lines Matching full:prompt

7 $Env:PATH environment variable and sets the prompt to signify that you are
16 .Parameter Prompt
17 The prompt prefix to display when this virtual environment is activated. By
18 default, this prompt is the name of the virtual environment folder (VenvDir)
35 Activate.ps1 -Prompt "MyPython"
37 and prefixes the current prompt with the specified string (surrounded in
57 $Prompt variable
76 # The prior prompt: in global:deactivate()
78 Copy-Item -Path Function:_OLD_VIRTUAL_PROMPT -Destination Function:prompt in global:deactivate()
190 # as `prompt`.
193 # Next, set the prompt from the command line, or the config file, or
195 if ($Prompt) { variable
196 Write-Verbose "Prompt specified as argument, using '$Prompt'" variable
199 Write-Verbose "Prompt not specified as argument to script, checking pyvenv.cfg value"
200 if ($pyvenvCfg -and $pyvenvCfg['prompt']) {
201 Write-Verbose " Setting based on value in pyvenv.cfg='$($pyvenvCfg['prompt'])'"
202 $Prompt = $pyvenvCfg['prompt']; variable
205 …Write-Verbose " Setting prompt based on parent's directory's name. (Is the directory name passed …
207 $Prompt = Split-Path -Path $venvDir -Leaf variable
211 Write-Verbose "Prompt = '$Prompt'" variable
222 $env:VIRTUAL_ENV_PROMPT = $Prompt
226 Write-Verbose "Setting prompt to '$Prompt'" variable
228 # Set the prompt to include the env name
231 Copy-Item -Path function:prompt -Destination function:_OLD_VIRTUAL_PROMPT
232 …cription "Python virtual environment prompt prefix" -Scope Global -Option ReadOnly -Visibility Pub… variable
234 function global:prompt { in global:prompt() function