Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Minimal Powershell prompt
# Put in $PSHOME\Profile.ps1
function prompt {
$location = Get-Location
Write-Host ($location.ToString().Replace($env:USERPROFILE, "~") + ">") -NoNewline
return " "
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.