A zsh plugin to override ls
and tree
commands with lsd
instead.
Using the ⚡ Zap minimal zsh plugin manager, add the following to your .zshrc
# Install plugin
plug "wintermi/zsh-lsd"
If you are using zap-zsh/supercharge you need to load this plugin after superchage, otherwise this plugin won't work because supercharge defines the same ls
alias (usefull to colorize ls
output for who is not using lsd).
Simply put it after the supercharge declaration in your .zshrc
like this:
# ...
plug "zap-zsh/supercharge"
plug "wintermi/zsh-lsd"
# ...
The ls
command will output directories first before the files with icons and colours.
The ll
command will output in list format, line by line, directories first before the files with details, icons and colours.
The la
command will output the same as ll
but including any hidden directories and files.
Outputs the same as the regular UNIX tree
command but done so using lsd
, therefore including all of the extras lsd
offers. By default, hidden directories and files are excluded, however they can be included by adding the -a
flag.
--depth <N>
flag. But note doing so could create very long output.
The zsh-lsd plugin is released under the Apache License 2.0 unless explicitly mentioned in the file header.