Skip to content

RodEsp/better-pwsh-ls

Repository files navigation

better-pwsh-ls

A PowerShell module that displays a list of files and directories in a specified path with additional formatting and color-coding.

This module exports a function, ll, that provides an enhanced directory listing, similar to the ls command in Unix/Linux. It displays files and directories with additional details such as file attributes, last modified time, and file size. The output is color-coded to easily distinguish between different types of items, such as directories, hidden files, and symbolic links.

Installation

This module can be installed from the PowerShell Gallery with the follwing command:

Install-Module -Name better-ls

Usage

Once installed you can use this module by typing ll in your PowerShell terminal.

Examples

See files and folders in current directory

PS> ll

Providing a path

PS> ll C:\Users\MyUser\

To see hidden files and folders

PS> ll C:\Users\MyUser\ -h

Comparisons with Get-ChildItem

The output of ll is more compact, ordered by file type, and includes symlink destinations. Comparision with Get-ChildItem

When viewing hidden files you still see the rest of the files in the directory with appropriate color coding.

Comparision with Get-ChildItem_Hidden

About

A simple replacement for Get-ChildItem with better ordering and formatting

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published