Skip to content

Latest commit

 

History

History
81 lines (54 loc) · 2.3 KB

README.md

File metadata and controls

81 lines (54 loc) · 2.3 KB

lsd aliases for PowerShell

License PowerShell Gallery Version PowerShell Gallery Downloads

This simple module was completely inspired by the Git aliases for Powershell module.

A PowerShell module that provide partial lsd aliases from Oh My Zsh's lsd plugin and Zap-Zsh's lsd plugin.

ℹ️ This module will replace the built-in ls command in PowerShell. dir remains usable, though.

⚙️ Installation

Install from PowerShell Gallery

Install-Module lsd-aliases -Scope CurrentUser -AllowClobber

Or use the Scoop manifest in the repo to install with Scoop.

scoop install https://raw.githubusercontent.com/FelipeCybis/pwsh-lsd-aliases/main/lsd-aliases.json

⚠️ If you haven't allowed script execution policy, set your script execution policy to RemoteSigned or Unrestricted.

Set-ExecutionPolicy RemoteSigned -Scope CurrentUser

🛂 Usage

You have to import the module to use lsd-aliases.

Add below command into your PowerShell profile.

Import-Module lsd-aliases -DisableNameChecking

Then restart your PowerShell.
Now you can use the lsd aliases.

Aliases

ls    -> lsd --group-directories-first @args
la    -> ls --almost-all @args
ll    -> ls --long @args
lt    -> ls --tree --depth=2 @args
l     -> ll --almost-all @args
llm   -> ll --timesort @args
llt   -> ll --tree --depth=2 @args
llat  -> l --tree --depth=2 @args
lm    -> l --timesort @args

⚠️ If you don't have PowerShell profile yet, create it with below command!

New-Item -ItemType File $profile