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.
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
RemoteSigned
or Unrestricted
.
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
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.
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
New-Item -ItemType File $profile