10 lines
355 B
PowerShell
10 lines
355 B
PowerShell
# gitea.RdzeN.net
|
|
#
|
|
# custom prompt for PS.
|
|
function Prompt {
|
|
$currentTime = Get-Date -Format "[yyyy-MM-dd][HH:mm:ss]"
|
|
$userName = [System.Security.Principal.WindowsIdentity]::GetCurrent().Name
|
|
$hostName = $env:COMPUTERNAME
|
|
$currentLocation = Get-Location
|
|
"[PS]$($currentTime)[$($userName)@$($hostName)][$($currentLocation)]`n[PS]> "
|
|
} |