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
withexport AUTOCD=1
.
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
With Oh My Zsh
Clone the repository and add zsh-lsd
to the plugins array of your .zshrc
file:
~/.oh-my-zsh/custom/plugins
plugins=(... zsh-lsd)
Add zplug z-shell/zsh-lsd
to your ~/.zshrc
and re-open your terminal session.