Skip to content

Commit 3f3592f

Browse files
committed
Merge tag 'v3.5.0' into develop
2 parents 7c2ead6 + d73b021 commit 3f3592f

File tree

2 files changed

+8
-39
lines changed

2 files changed

+8
-39
lines changed

README.org

Lines changed: 7 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -29,55 +29,20 @@ It provides two main functionalities:
2929
** Get-ChildItemColorFormatWide (=ls= equivalent)
3030
[[file:./screenshots/Get-ChildItemColorFormatWide.png]]
3131
* Install
32+
- The [[https://github.com/joonro/Get-ChildItemColor/wiki][wiki]] has additional instructions and examples.
3233
** Install from [[https://www.powershellgallery.com/packages/Get-ChildItemColor/][PowerShellGallery]]
3334
PowerShellGet is required, which is included in Windows 10 and WMF5. If you
3435
are using PowerShell V3 or V4, you will need to install [[https://www.microsoft.com/en-us/download/details.aspx?id=49186][PowerShellGet]].
3536

3637
Then, you can run =Install-Module Get-ChildItemColor=.
3738
** Install from GitHub
38-
After cloning the repo, you can put files in =/src= folder into
39+
After cloning the repo or downloading the files, you can put files in =/src= folder into
3940
=Get-ChildItemColor= folder under your =PSModulePath=
4041
(e.g., =$ENV:UserProfile\Documents\PowerShell\Modules= for PowerShell 6 and
4142
later). The =master= branch always contains the latest release version.
4243
** Install from [[https://chocolatey.org][Chocolatey]]
4344
The module is available as a [[https://chocolatey.org/packages/get-childitemcolor][Chocolatey package]]. Install it using =choco install get-childitemcolor=.
4445

45-
** Easiest way to use it in PowerShell 7
46-
Download the sources from github.
47-
48-
Input in Powershell the command
49-
=$Env:PSModulePath=
50-
and look in the directories, which are there listed.
51-
52-
In the directory you search for, are already directories like "CimCmdlets", "Microsoft.PowerShell.Archive" and other.
53-
Go to this directory called "Modules" and input in the PowerShell
54-
=mkdir Get-ChildItemColor=
55-
Go then in the created directory Get-ChildItemColor and copy inside it the files in the "src" directory of github called
56-
"FileInfo.ps1", "Get-ChildItemColor.psd1", "Get-ChildItemColor.psm1", "Get-ChildItemColorTable.ps1", "MatchInfo.ps1",
57-
"ProcessInfo.ps1", "PSColorHelper.ps1", "ServiceController.ps1"
58-
59-
Now input in the Powershell the command
60-
=$PROFILE=
61-
It outputs now the file, where the Powershell looks for initialization.
62-
If the directory to that file not exists, creating it.
63-
And if the file not exists, creating it, too.
64-
Now open the file in an text-editor like notepad.exe for example with
65-
=notepad $PROFILE=
66-
67-
68-
Input there the lines
69-
70-
#+begin_src powershell
71-
Import-Module Get-ChildItemColor
72-
Set-Alias -Name dir -Value Get-ChildItemColor -Option AllScope
73-
Set-Alias -Name ls -Value Get-ChildItemColorFormatWide
74-
#+end_src
75-
76-
and save it.
77-
Now start the PowerShell again.
78-
With the command "dir" you have a colord file list. With "ls" it is then in wide mode. And "gci" is still as default the old colorless output.
79-
You can also use the outwritten normal commands "Get-ChildItemColor", "Get-ChildItemColorFormatWide" and "Get-ChildItem".
80-
8146
* Usage
8247
When you import the module:
8348

@@ -97,13 +62,17 @@ If (-Not (Test-Path Variable:PSise)) { # Only run this in the console and not i
9762
Import-Module Get-ChildItemColor
9863

9964
Set-Alias l Get-ChildItemColor -option AllScope
100-
Set-Alias ls Get-ChildItemColorFormatWide -option AllScope [-HideHeader] [-TrailingSlashDirectory]
65+
Set-Alias ls Get-ChildItemColorFormatWide -option AllScope
10166
}
10267
#+end_src
10368

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

72+
~Get-ChildItemColor~ has the following optional switch:
73+
74+
- -HumanReadableSize :: Unix style size string (e.g. M instead of MB, K instead of KB etc) (thanks to [[https://github.com/kforeverisback][kforeverisback]])
75+
10776
~Get-ChildItemColorFormatWide~ has the following optional switches:
10877

10978
- -HideHeader :: supress printing of headers (path on top).

src/Get-ChildItemColor.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
RootModule = 'Get-ChildItemColor.psm1'
1111

1212
# Version number of this module.
13-
ModuleVersion = '3.4.0'
13+
ModuleVersion = '3.5.0'
1414

1515
# Supported PSEditions
1616
# CompatiblePSEditions = @()

0 commit comments

Comments
 (0)