Skip to content

Instantly share code, notes, and snippets.

@Halkcyon
Created August 2, 2019 14:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Halkcyon/46b44a18f8c29a99f2d08843958361e4 to your computer and use it in GitHub Desktop.
Save Halkcyon/46b44a18f8c29a99f2d08843958361e4 to your computer and use it in GitHub Desktop.
function prompt {
@"
`e[38;2;148;152;0m`n{0}
`e[m/{1}/
`e[38;5;21mPS `e[m`e[1m`e[4m {2} `e[m `e[38;5;208m{3}`e[38;5;92m{4} `e[m
"@ -f @((Get-Date -UFormat '%Y-%m-%d %H:%M:%S')
$PWD.Drive.Name.ToUpper()
((Get-History).Count + 1).ToString('000')
($PWD.ProviderPath.ToLower().Replace($HOME, '~').Replace('\', '/') -replace '\w:' -replace '/$') + '/'
'>' * ($NestedPromptLevel + 1))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment