Clash is a simple command-line shell written in C. It lets you:
- Run basic terminal commands
- Change directories with
cd - Explore how a shell works under the hood
gcc -Wall -Wextra -Werror src/* -o clash./clashYouβll see a prompt like:
clash -->Now you can type commands!
clash --> cd /home/user
clash --> ls
Documents Downloads file.txt
clash --> cd ..
/home- π
cdwith no argument takes you to your home directory - β If you type an unknown command, it will try to run it as a program
- π If a folder or command doesnβt exist, an error is shown
Planned future features:
- Support for pipes (
|) - Support for **(
&&,;) - Support for redirection (
>,<) - Support for background processes (
&) - Command history
- Implementation of the PS1 variable
Made by: Arkneid GitHub: TBD
This project is open-source under the MIT License.