No description
  • C# 84.3%
  • PowerShell 10.7%
  • Batchfile 5%
Find a file
2022-06-30 13:11:26 +02:00
.gitignore init 2022-06-29 14:11:25 +02:00
CustomPowershell.cs init 2022-06-29 14:11:25 +02:00
FileSystem.format.ps1xml formatting 2022-06-29 14:23:52 +02:00
launch.bat init 2022-06-29 14:11:25 +02:00
profile.ps1 shorter profile 2022-06-29 14:44:45 +02:00
README.md update readme 2022-06-30 13:11:26 +02:00
screenshot.png init 2022-06-29 14:11:25 +02:00

PowerShell Human Readable File Sizes

Screenshot

Quick Start

  1. Install Visual Studio to get a C# compiler. At a minimum make sure that under "Individual Components" the option C# and Visual Basic Roslyn compilers is checked.
  2. From a Native Tools Command Prompt run csc /target:library CustomPowerShell.cs to compile the custom format function into a loadable dll.
  3. .\launch.bat to launch a powershell window with the custom profile loaded.
  4. Run the Get-ChildItem.

Installation

Copy the custom dll and the format description file next to your PowerShell profile.

cp .\CustomPowerShell.dll $HOME\Documents\PowerShell\
cp .\FileSystem.format.ps1xml $HOME\Documents\PowerShell\

Edit your PowerShell profile to include the snippet from the profile.ps1 in this repository.