A smol prompt in rust moonscript
- To build this prompt, simply use
cargo build --release
, this will build astarget/release/rprompt
- To rebuild the moonscript code, you'll need
moonbuild
andmoonbuild release
ormoonbuild debug
should work - To install, you need to set it as your shell's prompt command (see the
install/
directory, sourcing these with your shell)
- tell you who you are and what machine you're on
- tell you what happened (last command status)
- tell you which shell you're currently using, if it's not your
$SHELL
- tell you where you are (current directory, and whether or not you're in screen and tmux)
- tell you what you are doing (git repo, branch and local copy status)
- tell you what venv you're using (venv root and python version)
- color itself if terminal supports 256color
nvm
,luaver
and similar envs- command execution time
- possibility to enable or disable features at moonscript compile time
- maybe even a small config file that gets compiled in the binary