Markdown
A custom, lightweight Unix shell built from scratch in C. Raptor Shell provides a terminal experience complete with custom dynamic prompts, command execution, piping, and command chaining.
- Custom Dynamic Prompt: Features a sleek, two-line Kali-inspired prompt that dynamically updates with your current working directory (
getcwd). - Command Execution: Executes standard system binaries using
fork()andexecvp(). - Piping Support (
|): Seamlessly redirects standard output of one command into the standard input of another using systempipe()anddup2(). - Command Chaining (
&&): Allows executing multiple sequential commands. - History Support: Built on top of the GNU
readlinelibrary, enabling command history navigation using arrow keys.
Before compiling and running Raptor Shell, ensure you have a C compiler (like gcc) and the GNU Readline development library installed on your Linux system.
On Ubuntu/Debian/Kali Linux:
sudo apt update
sudo apt install build-essential libreadline-dev
π₯ Installation & Compilation
Clone the repository:
Bash
git clone [https://github.com/null31596/raptor-shell.git](https://github.com/null31596/raptor-shell.git)
cd raptor-shell
Compile the source code:
Bash
gcc -o raptor main.c -lreadline
(Note: Replace main.c with the actual name of your main source file if it differs).
Run the Shell:
Bash
./raptor
π‘ Usage Examples
Once inside the Raptor Shell, you can run standard commands, use pipes, or chain commands:
Basic Commands:
Bash
raptor:/home/user/raptor-shell> ls -l
Piping:
Bash
raptor:/home/user/raptor-shell> ls | grep ".c"
Command Chaining:
Bash
raptor:/home/user/raptor-shell> make && ./raptor
π€ Contributing
Contributions, issues, and feature requests are welcome! Feel free to check the issues page.
π License
This project is open-source and available under the MIT License.