Pretty happy with this minimalist #PowerShell prompt!

function Prompt {
Write-Host ("$($pwd -replace [regex]::Escape($home),'~')>") -NoNewLine -ForegroundColor DarkGray
return " "
}

Replaces the full path of your home folder with ~ so it's nice and short if you're working in your Documents folder or whatnot.

@mabster

Maybe you would enjoy this... It's a blog post I did awhile back on how I customized my prompt and how you can replicate some of the choices I made... #powershell
https://www.commandline.ninja/customize-pscmdprompt/

How to customize your PowerShell command prompt

Learn how to customize your PowerShell cmd prompt with useful data

Command Line Ninja
@mikekanakos I love some of the fancy prompts I see around the web, but they never gelled with me for some reason. I prefer the really simple ones.

@mabster @mikekanakos my most minimal #PowerShell prompt is:

function prompt { "`e[36m$($MyInvocation.HistoryId) `e[37m$($pwd.Path.Replace($home,"🏠","InvariantCultureIgnoreCase"))`e[0m`n❯" }

@jaykul @mabster @mikekanakos I've always avoided two-line prompts, but I'm not sure I really know why. Either way I'm always interested in new customized prompt ideas.