Hardware
Hardware copied to clipboard
Standardize PowerShell Prompt
Standardize to: Username@Hostname YYYY-MM-DD HH:MM:SS:PresentWorkingDirectory>
with the following colors:
username
: green
hostname
: blue
YYYY-MM-DD HH:MM:SS
: purple
:
: white
PresentWorkingDirectory
: blue
>
: white
So far the date and time format can be retrieved via:
Get-Date -UFormat '%Y-%m-%d %H:%M:%S'
- PowerShell Profile Locations
- How To Uniquify Your PowerShell Console
- Combine these color descriptions with 2) above
Done!