ls-clone/README.md
2025-10-03 21:46:38 +02:00

915 B
Raw Blame History

Day 1: ls-clone

A tiny C program that mimics ls but adds a splash of colour and emojis to make directory listings.

The project is part of a personal coding challenge: Write a small C Programm Every Day (When i have Time(probably never))


Features

  • Lists files in the current directory (or a path passed as an argument).
  • Detects file type by extension and applies colour + emoji.
  • Works on Linux/macOS (uses dirent.h and ANSI escape codes).
  • No external dependencies just the C standard library.
image

Build & Install

# Clone the repo
git clone https://github.com/BlyDoesCoding/ls-clone
cd ls-clone

# Compile (requires Unix)
gcc -o ls-clone main.c

# Optionally move to a directory in your PATH
sudo mv ls-clone /usr/local/bin/