sqish/README.md
2022-12-07 17:37:39 +01:00

28 lines
1.1 KiB
Markdown

# RShell
Rust Shell. This is an attempt to create a simple shell in Rust, because why not.
My starting point is [this article](https://www.joshmcguigan.com/blog/build-your-own-shell-rust/) which is excellent. I will start with the final form of a shell given in the article and try to reformat it:
* Make it more easy to extend
* Make it a lib
I can also add basic features:
* History
* customizable prompt
* Colours ?
Later, I can even make something useful out of it. For example, I could make it so that it is configurable via a config file. I could make it the default terminal via ssh for some user and make it so the terminal opens directly in a docker container, or chrooted or smthing, as a basic form of honeypot.
# Done
* A basic history system. Writes to ~/history.rshell
* Tests for this history system
* Added the !<number> function
# Todo
* Add a function that gets the path of the history file, rather than copying it every time
* Other tests for the rest of the features
* Add a builtin history command
* Add a test for the treat_history_callback function
* Get some sleep
* Order the file (modules...)