2
6
Fork
You've already forked grompt
2
No description
  • Go 95.5%
  • Makefile 3.7%
  • Nix 0.8%
Find a file
2026年06月03日 03:59:43 +02:00
presets chore: full refactor & custom config parser 2026年06月03日 03:41:49 +02:00
.gitignore chore: full refactor & custom config parser 2026年06月03日 03:41:49 +02:00
color.go chore: full refactor & custom config parser 2026年06月03日 03:41:49 +02:00
devenv.lock chore: full refactor & custom config parser 2026年06月03日 03:41:49 +02:00
devenv.nix chore: full refactor & custom config parser 2026年06月03日 03:41:49 +02:00
devenv.yaml chore: full refactor & custom config parser 2026年06月03日 03:41:49 +02:00
exec.go chore: full refactor & custom config parser 2026年06月03日 03:41:49 +02:00
go.mod chore: change project name 2025年12月04日 19:00:50 -05:00
main.go chore: full refactor & custom config parser 2026年06月03日 03:41:49 +02:00
Makefile chore: full refactor & custom config parser 2026年06月03日 03:41:49 +02:00
prompt.go chore: full refactor & custom config parser 2026年06月03日 03:41:49 +02:00
README.md chore: full refactor & custom config parser 2026年06月03日 03:41:49 +02:00

grompt

makes your shell prompt not look like garbage. zero deps. one config file.

starship.rs is bloated garbage this is the antidote.

Install

curl -sSL https://codeberg.org/estebxn/grompt/raw/branch/master/install.sh | bash

or clone it and make build.

Config

first run generates ~/.config/grompt for you. override with $GROMPT_CONFIG or $CONFIG_PATH if you're fancy.

old grompt.json files still work.

Format

plain text, one segment per line. # for comments.

# env vars
$USER
# internal variables
{dir} # just the folder name
{pwd} # full path (~/foo/bar)
{spwd} # shortened path (~/f/bar)
{hostname}
{git_branch}
# colors and styles
fg:green # foreground (name or #hex)
bg:red # background
c:bold # style
c:reset # back to normal
# run stuff
exec:date +%H:%M
# git conditionals
?clean ✓
?dirty ✗
# multiline conditionals
?dirty {
fg:red
✗
}
# text
@ # anything else is literal
\s # space
\t # tab

colors: black, red, green, yellow, blue, magenta, cyan, white, bright_black, bright_red and so on. also fg:#RRGGBB and bg:#RRGGBB.

styles: bold, dim, italic, underline, blink, reverse, hidden, strike.

Shell Integration

bash - in .bashrc:

PROMPT_COMMAND='PS1="$(grompt | perl -pe '\''s/\x1b\[([0-9;]*m)/\\[\\e[1ドル\\]/g'\'')"'

zsh - in .zshrc:

PROMPT='$(grompt)'

fish - in ~/.config/fish/functions/fish_prompt.fish:

function fish_prompt
grompt
end

dash - in .profile:

PS1='$(grompt)'

Presets

see presets.