diff --git a/functions/prompt.ps1 b/functions/prompt.ps1 index 54113ee..daa5d8a 100644 --- a/functions/prompt.ps1 +++ b/functions/prompt.ps1 @@ -2,9 +2,9 @@ # # custom prompt for PS. function Prompt { - $currentTime = Get-Date -Format "yyyy-MM-dd HH:mm:ss" + $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]> " + "[PS]$($currentTime)[$($userName)@$($hostName)][$($currentLocation)]`n[PS]> " } \ No newline at end of file