Skip to content
/ lsc Public

PowerShell command for colorized `Get-ChildItem`.

License

Notifications You must be signed in to change notification settings

jqly/lsc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

lsc, a colorized Get-ChildItem

Installation

put the file in to yourname\\Documents\\WindowsPowerShell\\Modules\\lsc\\lsc.psm1 and it should work.

Usage

lsc -path . -style @{"maxSpacePerName"=4;"nNamePerRow"=20} -Force or

lsc -path . -style @{"maxSpacePerName"=4;"nNamePerRow"=20}

Have a look at the source code! Here are some use cases.

Simply type lsc, you will get something like this ...

lsc

You can customize the printing style. Also, there are some built-in styles.

lscstyles

Use such like the following.

lsctightlarge

Or, you can use your own like this:

lscuserstyle

Chinese characters are wider than ascii ones, twice in fact. But this is not a problem.

lscchinese

Finally, the -Force parameter.

lscforce

Fiddling around the code

You can look up the code and decide to use your own color scheme. Function getColor is where to set the color. As for my own, I use gray to these hidden folders, dark gray for hidden files, dark green for normal folders and dark blue for normal files.

I wish you enjoy it:)

Miscellaneous

Have a look on my project about colorized theme and customized prompt for PowerShell;)

About

PowerShell command for colorized `Get-ChildItem`.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published