From 4f74c7ad6a8dc93eb023d642b23e013cdcb06af8 Mon Sep 17 00:00:00 2001 From: "Shaun Lawrie (via GitHub Actions)" Date: Fri, 15 Mar 2024 22:49:47 +1300 Subject: [PATCH] Update table example for windows/linux --- PwshSpectreConsole/public/formatting/Format-SpectreTable.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PwshSpectreConsole/public/formatting/Format-SpectreTable.ps1 b/PwshSpectreConsole/public/formatting/Format-SpectreTable.ps1 index ea86f84f..01e33df4 100644 --- a/PwshSpectreConsole/public/formatting/Format-SpectreTable.ps1 +++ b/PwshSpectreConsole/public/formatting/Format-SpectreTable.ps1 @@ -72,7 +72,7 @@ function Format-SpectreTable { # foreground @{'Name'='Last Updated'; Expression={ "[DeepSkyBlue3_1]" + $_.LastWriteTime.ToString() + "[/]" }}, # background - @{'Name'='Drive'; Expression={ "[black on LightGreen_1]" + (Split-Path $_.Fullname -Qualifier) + "[/]" }} + @{'Name'='Drive'; Expression={ "[black on LightGreen_1]" + $_.PSDrive.Root + "[/]" }} ) Get-ChildItem | Format-SpectreTable -Property $Properties -AllowMarkup