#colorful #directory #clone

app ls-rs

A Rust based colorful ls clone

7 releases

Uses new Rust 2024

new 0.1.6 Sep 15, 2025
0.1.5 Sep 6, 2025
0.1.4 Aug 29, 2025
0.1.1 Jul 22, 2025

#5 in #colorful

Download history 127/week @ 2025-07-16 93/week @ 2025-07-23 123/week @ 2025-08-13 9/week @ 2025-08-20 223/week @ 2025-08-27 123/week @ 2025-09-03

478 downloads per month

GPL-3.0-or-later

22KB
139 lines

ls-rs

A blazing-fast and colorful ls alternative written in Rust 🦀

Easily list directory contents with intuitive color coding, smart formatting, and robust error handling.

✨ Features

  • Color-coded output based on file type:
    • 🔵 Blue: Directories
    • 🔗 Cyan: Symlinks
    • 🟢 Green: Executable files
    • 🟡 Yellow: Image files (jpg, png, gif, etc.)
    • White: Regular files
  • Smart column layout that adapts to your terminal width
  • Hidden file support with -a/--all flag
  • Robust error handling with helpful error messages
  • Fast performance thanks to Rust's zero-cost abstractions
  • Cross-platform compatibility
  • Intuitive sorting: non-hidden files first, case-insensitive alphabetical order

🚀 Installation

From crates.io

cargo install ls-rs

From source

git clone https://github.com/KushalMeghani1644/ls-rs
cd ls-rs
cargo build --release

📖 Usage

# List current directory
ls-rs

# List specific directory
ls-rs /path/to/directory

# Show hidden files
ls-rs -a
ls-rs --all

# Show help
ls-rs -h
ls-rs --help

🎨 Color Scheme

File Type Color Example
Directory Blue Documents/
Symlink Cyan link -> target
Executable Green script.sh
Image Yellow photo.jpg
Regular file White readme.txt

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

📄 License

This project is licensed under the GPLv3 License - see the LICENSE file for details.

Dependencies

~4–18MB
~191K SLoC