Functions/Modify-Prompt.ps1
# =========================================================================== # Modify-Prompt.ps1 ------------------------------------------------------- # =========================================================================== # function ----------------------------------------------------------------- # ---------------------------------------------------------------------------- function Write-VirtualEnvStatus { [CmdletBinding(PositionalBinding=$True)] [OutputType([Void])] Param () Process{ $venv_path = [System.Environment]::GetEnvironmentVariable($PSVirtualEnv.VenvPath, "process") Write-PromptModuleStatus -Module "Venv" -Value $(Split-Path -Path $venv_path -leaf) } } |