Skip to content

simon-danielsson/raket

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

raket

A simple bash prompt.

Crates.io version MIT License Last commit

FeaturesInstallConfigDependenciesLicense


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

col_cargo_env = #D9A281

# === 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

set_show_cargo_env = true

Dependencies


License

This project is licensed under the MIT License.