bash-prompt-git Builder

Customize your git prompt format and colors with a live preview

Presets

Format String

Placeholder reference
<repo>Repository name <path>Sub-path within repo (empty at root) <branch>Current branch name <behind>Behind remote indicator, e.g. ↓3 <ahead>Ahead of remote indicator, e.g. ↑2 <no_remote>× when no remote tracking branch <staged>+ when staged changes exist <unstaged>* when unstaged changes exist { }Conditional group — removed when all placeholders inside are empty

Colors

Actual colors depend on your terminal's color scheme. Preview shows Catppuccin Mocha.

Preview

Export

Add these lines to your ~/.bashrc — either as top-level exports before sourcing prompt.sh, or inside your PROMPT_COMMAND function. Then restart your shell or run source ~/.bashrc.