Skip to content

Instantly share code, notes, and snippets.

@haruki7049
Last active November 14, 2023 09:55
Show Gist options
  • Save haruki7049/93d7f807c463bd2ef8e1c285c3e202be to your computer and use it in GitHub Desktop.
Save haruki7049/93d7f807c463bd2ef8e1c285c3e202be to your computer and use it in GitHub Desktop.
Import-Module PSReadline
Set-PSReadLineOption -EditMode Emacs -BellStyle None
function Prompt {
$username = "$($env:USER)"
$path = "$($executionContext.SessionState.Path.CurrentLocation)"
Write-Host $path -NoNewline -ForeGroundColor blue
Write-Host " $(Get-Date -Format "MM/dd/yyyy HH:mm")" -ForeGroundColor yellow
Write-Host ">" -NoNewline -ForeGroundColor yellow
return " "
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment