Customize your git prompt format and colors with a live preview
<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
Actual colors depend on your terminal's color scheme. Preview shows Catppuccin Mocha.
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.