Skip to content

z-shell/zsh-lsd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logo ❮ Zsh Plugin - Lsd ❯

Zsh plugin which replace GNU/ls with next generation ls by Peltoche/lsd

Default settings

The Zsh plugin replaces the GNU/ls with lots of added features like colors, icons, tree-view, and other formatting options.

Enable auto list directories on cd with export AUTOCD=1.

Install

The lsd should be present to use this plugin. Install lsd with Zi:

zi ice binary from'gh-r' sbin'**/lsd -> lsd' \
  atclone'cp lsd-*/lsd.1 $ZI[MAN_DIR]/man1; ln -s lsd-*/*/_lsd _lsd'
zi light Peltoche/lsd

With Zi

To install add to the .zshrc file:

zi light z-shell/zsh-lsd

Install only if lsd available in $PATH and enable auto-list directories:

zi ice has'lsd' atinit'AUTOCD=1'
zi light z-shell/zsh-lsd

Install only if lsd available in $PATH and enable auto-list directories in turbo mode:

zi ice wait lucid has'lsd' atinit'AUTOCD=1'
zi light z-shell/zsh-lsd

Install only if lsd available in $PATH and enable auto-list directories in turbo mode with the syntax:

zi wait lucid for \
  has'lsd' atinit'AUTOCD=1' \
    z-shell/zsh-lsd

Clone the repository and add zsh-lsd to the plugins array of your .zshrc file:

~/.oh-my-zsh/custom/plugins
plugins=(... zsh-lsd)

With Zplug

Add zplug z-shell/zsh-lsd to your ~/.zshrc and re-open your terminal session.