mirror of
https://github.com/BlyDoesCoding/ls-clone.git
synced 2025-12-31 04:23:08 +00:00
Create README.md
This commit is contained in:
parent
50857ded20
commit
3e76a18586
1 changed files with 29 additions and 0 deletions
29
README.md
Normal file
29
README.md
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
## 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 (I have Time)
|
||||
|
||||
---
|
||||
|
||||
### 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.
|
||||
|
||||
---
|
||||
|
||||
### Build & Install
|
||||
|
||||
```bash
|
||||
# Clone the repo
|
||||
git clone
|
||||
cd ls-clone-emoji-color
|
||||
|
||||
# Compile (requires Unix)
|
||||
gcc -o ls-clone main.c
|
||||
|
||||
# Optionally move to a directory in your PATH
|
||||
sudo mv ls-clone /usr/local/bin/
|
||||
Loading…
Add table
Add a link
Reference in a new issue