This version of the simple shell includes support for command history, colored prompts, and more. It still supports basic Unix commands, cd, exit, and includes a built-in history command.
- History Command: View the history of entered commands by typing
history. - Colored Prompt: The shell prompt is now colored green for better aesthetics.
- Exit Command: Type
exitto terminate the shell as before.
-
Clone this repository to your local machine:
git clone https://github.com/ArijSaaleh/shell-simulation.git cd shell-simulation -
Compile the project using
gcc:gcc -o shell shell.c
-
Run the shell:
./shell
You can run commands like:
arijs-shell> ls
arijs-shell> pwd
arijs-shell> echo "Hello, Shell!"This project is open-source.