summaryrefslogtreecommitdiff
path: root/powershell/Microsoft.PowerShell_profile.ps1
diff options
context:
space:
mode:
Diffstat (limited to 'powershell/Microsoft.PowerShell_profile.ps1')
-rw-r--r--powershell/Microsoft.PowerShell_profile.ps18
1 files changed, 0 insertions, 8 deletions
diff --git a/powershell/Microsoft.PowerShell_profile.ps1 b/powershell/Microsoft.PowerShell_profile.ps1
index c05df79..d761ddc 100644
--- a/powershell/Microsoft.PowerShell_profile.ps1
+++ b/powershell/Microsoft.PowerShell_profile.ps1
@@ -3,17 +3,9 @@
function prompt {
$Date = Get-Date -Format 'dddd HH:mm:ss'
-
- $LastCommand = Get-History -Count 1
- if ($lastCommand) { $RunTime = ($lastCommand.EndExecutionTime - $lastCommand.StartExecutionTime).TotalSeconds }
-
- $ElapsedTime = [math]::Round(($RunTime), 3)
- $ElapsedTime = -join (($ElapsedTime.ToString()), "s")
-
Write-Host $PWD -ForegroundColor Blue -NoNewline
Write-Host " [$date]" -ForegroundColor Yellow
- Write-Host "[$elapsedTime] " -NoNewline -ForegroundColor Green
return "> "
} #end prompt function
Back to https://optics-design.com