https://github.com/arijsaaleh/shell-simulation
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.
https://github.com/arijsaaleh/shell-simulation
c command-line shell shell-script
Last synced: 21 days ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/arijsaaleh/shell-simulation
- Owner: ArijSaaleh
- Created: 2025-02-27T20:20:37.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-27T20:31:54.000Z (over 1 year ago)
- Last Synced: 2025-02-28T05:21:15.357Z (over 1 year ago)
- Topics: c, command-line, shell, shell-script
- Language: C
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simple Shell in C
## Project Overview
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.
### New Features:
- **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 `exit` to terminate the shell as before.
## How to Build and Run
1. Clone this repository to your local machine:
```bash
git clone https://github.com/ArijSaaleh/shell-simulation.git
cd shell-simulation
```
2. Compile the project using `gcc`:
```bash
gcc -o shell shell.c
```
3. Run the shell:
```bash
./shell
```
## Usage
### Basic Commands
You can run commands like:
```bash
arijs-shell> ls
arijs-shell> pwd
arijs-shell> echo "Hello, Shell!"
```
# License
This project is open-source.