Skip to content

Commit

Permalink
Add instructions about HideHeader switch
Browse files Browse the repository at this point in the history
  • Loading branch information
joonro committed Jun 6, 2022
1 parent 403a28c commit f5c300b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions README.org
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,16 @@ If (-Not (Test-Path Variable:PSise)) { # Only run this in the console and not i
Import-Module Get-ChildItemColor

Set-Alias l Get-ChildItem -option AllScope
Set-Alias ls Get-ChildItemColorFormatWide -option AllScope
Set-Alias ls Get-ChildItemColorFormatWide -option AllScope [-HideHeader]
}
#+end_src

So =l= yields colored output of =Get-ChildItem= and =ls= yields colored output
of =Get-ChildItem | Format-Wide= equivalent.

[fn:pathProfile] ~$Home\[My ]Documents\WindowsPowerShell\Profile.ps1~
of =Get-ChildItem | Format-Wide= equivalent. There is an optional
~-HideHeader~ switch which will supress printing of headers (path on top) for
~Get-ChildItemColorFormatWide~ when specified.

[fn:pathProfile] ~$Home\[My ]Documents\PowerShell\Profile.ps1~ or ~$Home\[My ]Documents\WindowsPowerShell\Profile.ps1~

[fn:pathProfileISE] ~$Home\[My ]Documents\WindowsPowerShell\Microsoft.PowerShellISE_profile.ps1~

Expand Down

0 comments on commit f5c300b

Please sign in to comment.