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
lscommand in PowerShell.dirremains 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.jsonRemoteSigned or Unrestricted.
Set-ExecutionPolicy RemoteSigned -Scope CurrentUserYou have to import the module to use lsd-aliases.
Add below command into your PowerShell profile.
Import-Module lsd-aliases -DisableNameCheckingThen 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 @argsNew-Item -ItemType File $profile