Skip to content

Smol prompt for fish/zsh/bash in rust moonscript

Notifications You must be signed in to change notification settings

natnat-mc/rprompt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rprompt

A smol prompt in rust moonscript

Building and installing

  • To build this prompt, simply use cargo build --release, this will build as target/release/rprompt
  • To rebuild the moonscript code, you'll need moonbuild and moonbuild release or moonbuild 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)

What does it do?

  • 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

What to add next?

  • 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

About

Smol prompt for fish/zsh/bash in rust moonscript

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published