u/Nevvixsz

▲ 14 r/Zig

zlsx - A fast, lightweight ls clone written in Zig with custom themes

Hey everyone!

I wanted to share my recent project called **zlsx** - a lightweight, high-performance clone of the core `ls` utility written entirely from scratch in Zig (tested on 0.17.0-dev and 0.16.0).

I built this to practice my system programming skills and learn more about memory management and standard library tools in Zig.

Current Features:

* High-performance execution.

* Custom, low-strain пастель-colors for terminal outputs inspired by Catppuccin Mocha (directories) and Nord (symlinks).

* Supports core flags: `-a`, `-1`, `-m`, `-h`, `-s`, `-T`, `-F`, `-r`, and sorting (`-t` / `-S`).

* Full POSIX double-dash `--` delimiter support for path parsing.

*Note: The `-l` flag is still under development, so for now it only shows file sizes and names.*

I'd really appreciate any feedback on the codebase, architecture, or formatting!

**GitHub Repository:** https://github.com/kakasha12f-ctrl/zlsx/tree/main

By the way, this is my first real project (200+ lines of pure Zig code), so please don't judge too harshly! 😅 Hope you like it.

reddit.com
u/Nevvixsz — 6 days ago