From 14b35049087cc4b7b8e9774606da9e30ef3c95de Mon Sep 17 00:00:00 2001 From: admin Date: Fri, 2 May 2025 18:26:57 +0200 Subject: Changed shortcut, pwsh/gpg/ settings, added wsl --- powershell/Microsoft.PowerShell_profile.ps1 | 8 -------- 1 file changed, 8 deletions(-) (limited to 'powershell/Microsoft.PowerShell_profile.ps1') 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 -- cgit v1.2.3