https://github.com/wintermi/zsh-lsd
A zsh plugin to override 'ls' and 'tree' commands with 'lsd' instead.
https://github.com/wintermi/zsh-lsd
lsd zsh zsh-plugin
Last synced: 3 months ago
JSON representation
A zsh plugin to override 'ls' and 'tree' commands with 'lsd' instead.
- Host: GitHub
- URL: https://github.com/wintermi/zsh-lsd
- Owner: wintermi
- License: apache-2.0
- Created: 2022-12-29T08:05:24.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-09-28T09:51:45.000Z (about 1 year ago)
- Last Synced: 2024-12-25T12:44:23.392Z (11 months ago)
- Topics: lsd, zsh, zsh-plugin
- Language: Shell
- Homepage:
- Size: 15.6 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-zsh-plugins - lsd (wintermi) - Override `ls` and `tree` commands with [lsd](https://github.com/Peltoche/lsd). (Plugins / ZSH on Windows)
- fucking-awesome-zsh-plugins - lsd (wintermi) - Override `ls` and `tree` commands with <b><code> 15057⭐</code></b> <b><code> 469🍴</code></b> [lsd](https://github.com/Peltoche/lsd)). (Plugins / ZSH on Windows)
README
# zsh-lsd
A zsh plugin to override `ls` and `tree` commands with [`lsd`](https://github.com/Peltoche/lsd) instead.
## Install
Using the [:zap: Zap](https://www.zapzsh.org/) minimal zsh plugin manager, add the following to your `.zshrc`
```sh
# Install plugin
plug "wintermi/zsh-lsd"
```
## ⚠️ Special Attention
If you are using [zap-zsh/supercharge](https://github.com/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:
```sh
# ...
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 ` flag. But note doing so could create very long output.

## License
The **zsh-lsd** plugin is released under the [Apache License 2.0](https://github.com/wintermi/zsh-lsd/blob/main/LICENSE) unless explicitly mentioned in the file header.