https://github.com/rodesp/better-pwsh-ls
A simple replacement for Get-ChildItem with better ordering and formatting
https://github.com/rodesp/better-pwsh-ls
Last synced: 8 days ago
JSON representation
A simple replacement for Get-ChildItem with better ordering and formatting
- Host: GitHub
- URL: https://github.com/rodesp/better-pwsh-ls
- Owner: RodEsp
- License: mit
- Created: 2023-10-29T20:13:42.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-29T21:30:54.000Z (over 1 year ago)
- Last Synced: 2024-12-26T04:29:03.802Z (5 months ago)
- Language: PowerShell
- Size: 343 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://www.powershellgallery.com/packages/better-ls/) with the follwing command:
```pwsh
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
```pwsh
PS> ll
```
Providing a path
```pwsh
PS> ll C:\Users\MyUser\
```
To see hidden files and folders
```pwsh
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.
When viewing hidden files you still see the rest of the files in the directory with appropriate color coding.
