/sh-rs

A rust shell example

Primary LanguageRust

sh-rs

psh demo

This is a simple "shell" made live on stream with the community. The replay is available here

Usage

Make sure you have cargo installed, clone the repository then:

cargo run 

You have a prompt with the current directory, you can run command and see the output, and that's about it.

Ideas for extension

Add Shell Built-ins

The essentials cd, exit and help. If you want more inspiration looks for builtin in man bash

Support for Piping and redirecting

That might require rewriting the basic principle of the shell.