From 8dea4a7f88705b31b8f0b9976d411e8d57c9cfbe Mon Sep 17 00:00:00 2001 From: lub Date: Wed, 18 Jan 2023 11:13:03 +0100 Subject: [PATCH] prettier output for pwsh watch --- profile.ps1 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/profile.ps1 b/profile.ps1 index fc8bfb2..ce5a68c 100644 --- a/profile.ps1 +++ b/profile.ps1 @@ -120,8 +120,12 @@ function watch { while ($true) { $o = Invoke-Command -ScriptBlock $ScriptBlock + Clear-Host + 'Watching {'+$ScriptBlock+'} '+(Get-Date) + '' $o + Start-Sleep -Seconds $n } }