Install Rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
Add it to your path
PATH=$PATH:$HOME/.cargo/bin
clone this repository,
git clone https://github.com/truonghm/shell-rust.gitand run
cd shell-rust && cargo run- REPL
- Builtin: echo, type, exit
- Running external programs (using PATH)
- pwd, cd
- Quoting: single quotes, double quotes, backslash
- Redirection: stdout, stderr
- Autocompletion: builtin, with arguments, etc.
- Pipelines
- History: listing history, up/down navigation, execution
- Persisting history: read/write from file, append to file, modify history on exit
- Parse tree