From a75137e6cc98944c5013c7eefc475f8d2a95df1b Mon Sep 17 00:00:00 2001 From: Jiri Cincura Date: Wed, 20 Mar 2024 13:22:26 +0100 Subject: [PATCH] Green prompt "identifier" (similar to Python's venv). --- activate.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activate.ps1 b/activate.ps1 index 093eecdfc89..ebbd8c3b200 100644 --- a/activate.ps1 +++ b/activate.ps1 @@ -41,7 +41,7 @@ if (-not $env:DISABLE_CUSTOM_PROMPT) { $function:_old_prompt = $function:prompt function dotnet_prompt { # Add a prefix to the current prompt, but don't discard it. - write-host "($( split-path $PSScriptRoot -leaf )) " -nonewline + write-host -f Green "($( split-path $PSScriptRoot -leaf )) " -nonewline & $function:_old_prompt }