ls-clone/README.md

33 lines
915 B
Markdown
Raw Normal View History

2025-10-03 21:18:54 +02:00
## Day 1: ls-clone
A tiny **C** program that mimics `ls` but adds a splash of colour and emojis to make directory listings.
2025-10-03 21:46:38 +02:00
The project is part of a personal coding challenge: Write a small C Programm Every Day (When i have Time(probably never))
2025-10-03 21:18:54 +02:00
---
### 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.
2025-10-03 21:29:30 +02:00
<img width="1009" height="434" alt="image" src="https://github.com/user-attachments/assets/5b9c1269-bf0d-4b34-83fb-4546fc4613ee" />
2025-10-03 21:18:54 +02:00
---
### Build & Install
```bash
# Clone the repo
2025-10-03 21:19:41 +02:00
git clone https://github.com/BlyDoesCoding/ls-clone
cd ls-clone
2025-10-03 21:18:54 +02:00
# Compile (requires Unix)
gcc -o ls-clone main.c
# Optionally move to a directory in your PATH
sudo mv ls-clone /usr/local/bin/