Skip to content

Instantly share code, notes, and snippets.

@theparticleman
Last active October 2, 2020 21:30
Show Gist options
  • Save theparticleman/f07b8d824f9ea03997b039f52222ca6c to your computer and use it in GitHub Desktop.
Save theparticleman/f07b8d824f9ea03997b039f52222ca6c to your computer and use it in GitHub Desktop.
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