summaryrefslogtreecommitdiff
path: root/powershell
diff options
context:
space:
mode:
authoradmin <contact@optics-design.com>2025-05-02 18:26:57 +0200
committeradmin <contact@optics-design.com>2025-05-02 18:26:57 +0200
commit14b35049087cc4b7b8e9774606da9e30ef3c95de (patch)
treefdd5bf6d5ce5b0971b65eab8cad6615bf6ac0c3a /powershell
parentcc89a3d0c2211510fc581425c47d9dc97df56bdf (diff)
Changed shortcut, pwsh/gpg/ settings, added wsl
Diffstat (limited to 'powershell')
-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