Awesome
zsh-lsd
A zsh plugin to override ls
and tree
commands with lsd
instead.
Install
Using the :zap: Zap minimal zsh plugin manager, add the following to your .zshrc
# Install plugin
plug "wintermi/zsh-lsd"
⚠️ Special Attention
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).<BR><BR>
Simply put it after the supercharge declaration in your .zshrc
like this:
# ...
plug "zap-zsh/supercharge"
plug "wintermi/zsh-lsd"
# ...
Usage
ls
The ls
command will output directories first before the files with icons and colours.
ll
The ll
command will output in list format, line by line, directories first before the files with details, icons and colours.
la
The la
command will output the same as ll
but including any hidden directories and files.
tree
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.
⚠️ NOTE: It will recurse by default to a depth of 2. You can increase the recursion depth by adding the --depth <N>
flag. But note doing so could create very long output.
License
The zsh-lsd plugin is released under the Apache License 2.0 unless explicitly mentioned in the file header.