My PowerShell profile with customized command line prompt.
Looks good in Windows Terminal with PowerShell 7.
Custom prompt installation:
- Check your
$PROFILE
path:50 19:56:44 Users\dominem > echo $PROFILE C:\Users\dominem\Documents\PowerShell\Microsoft.PowerShell_profile.ps1
- Copy the
function global:prompt {...}
definition fromMicrosoft.PowerShell_profile.ps1
file to your$PROFILE
file. - Run
. $PROFILE
to refresh the PowerShell profile or just restart your terminal(s).