raket 0.1.6

A simple bash prompt.
raket-0.1.6 is not a library.

Features

  • Configuration file that's easy to set up!

[!IMPORTANT]
Raket has currently only been tested on MacOS.


Install

Install binary using cargo:

cargo install raket

Add the following lines to your .bashrc:

_raket() {
    local last_status=$?
    PS1="$(raket --status="$last_status")"
}
PROMPT_COMMAND=_raket

Config

Launch Raket for the first time to generate a default config file:
~/.config/raket/config

# === icons ===

ico_entry_success = 
ico_entry_failed = 

# === colors ===

col_entry_success = #aab4c0
col_entry_failed = #DF6C74

col_main = #aab4c0
col_git_branch = #99C379
col_git_status = #DF6C74

# === settings ===

# add space in between each command
set_space = true

# if true, the prompt input will be below. if false, on the same line
set_prompt_newline = true

set_show_git_branch = true
set_show_git_status = true

Dependencies


License

This project is licensed under the MIT License.