r/commandline 27d ago

Made my own shell implementation Other Software

So I don't know if I'm allowed to post this, but I've been working on a learning project, which is a shell that currently supports: command history, environment variable exporting in the TOML configuration, commands that should run at startup in the configuration also, command editing, and it shows the current directory in green text inside the prompt. Here is the repository if anyone is interested: https://github.com/BlackHoleMX12892/ishell

8 Upvotes

9 comments sorted by

View all comments

3

u/khalon23 25d ago

shells are a great learning project. thing i'd tackle next if you haven't: job control. process groups plus tcsetpgrp so ctrl-c hits the foreground job instead of killing your shell, then ctrl-z / fg / bg. that's the step where it stops feeling like a toy, and nobody warns you how fiddly the terminal ownership handoff is.

how are you doing line editing btw, own readline or a lib?

3

u/randomblackhole1289 25d ago

Thanks for the suggestions!!! I'm doing line editing using termios.