Home

Awesome

<p align="center"><img src="https://github.com/user-attachments/assets/94e51ff1-3278-4cc5-83cf-9e1d31ece3e3" width="800"></p> <p align="right"><sub>* screenshot taken in <a href="https://github.com/warpdotdev/Warp">warp</a> terminal</sub></p> <h1 align="center">BB 🦴 -- backbone zsh prompt -- git</h1> <p align="center">A bare minimum single file prompt, fast as a roadrunner MEEP! MEEP! 💨 ...</p>

<br><br>

BackBone is a prompt with the bare minimum needed for a working zsh prompt that tracks git changes.
BB1 is a blazingly fast the roadrunner of the prompts! Be prepared for some Meep! Meep! Moments.

I was in need of a super simple minimal prompt that fulfills my needs. It has to be fast, easy to setup, a single file and have git support with minimal features. Furthermore i ended up building this one.

If you are like me and just looking for a prompt that is "not more than the bare minimum needed"
-- Stop looking!

Table of Contents

Quickstart

Clone the repository:

Clone the repository into ~/.config/zsh:

git clone git@github.com:lmllrjr/backbone-zsh-prompt.git ~/.config/zsh/backbone-zsh-prompt

Load the prompt in .zshrc file:

Copy the following lines into your .zshrc file:

# only load prompt if the `bb.zsh` file exists
[ -f $HOME/.config/zsh/backbone-zsh-prompt/bb.zsh ] && \
source $HOME/.config/zsh/backbone-zsh-prompt/bb.zsh

[!TIP] More installation options can be found on the BB Wiki Install page.

Explanation of elements

Colorization options / settings

OptionDescriptionDefault valueType
BB_PROMPT_DIRThe working directory"13" #6c71c4string
BB_PROMPT_GITThe shown VCS in use (git:())"10" #586e75string
BB_PROMPT_BRANCHThe git branch name"1" #dc322fstring
BB_PROMPT_ACTIONThe git actions rebase/merge"3" #b58900string
BB_PROMPT_AHEAD_BEHINDThe ahead and behind arrows + counters"4" #2aa198string
BB_PROMPT_COUNTChanged file count on branch"14" #93a1a1string
BB_PROMPT_TAGThe git tag color (If not empty the git tag is active)""string
BB_PROMPT_CLOCKThe clock (If not empty the clock is active)""string
BB_PROMPT_PROJECTS_PATHThe path of the project folder"${HOME}/code"string
BB_PROMPT_PROJECTSTurn the project folder option on or offtruebool
BB_PROMPT_SIGNSet the character of the prompt"%"string

[!TIP] More information on the Projects Path can be found in the wiki!

Example config

Just set the variables in your .zshrc file.

[!IMPORTANT]
Make sure to set the vars before actually loading the prompt!

~/.zshrc:

# set vars
export BB_PROMPT_DIR=6
export BB_PROMPT_GIT="#EEEEEE"
export BB_PROMPT_TAG="blue"
export BB_PROMPT_PROJECTS_PATH="${HOME}/my/projects/path"
export BB_PROMPT_PROJECTS=false
export BB_PROMPT_SIGN="$"

# only load prompt if the `bb.zsh` file exists
[ -f $HOME/.config/zsh/backbone-zsh-prompt/bb.zsh ] && \
source $HOME/.config/zsh/backbone-zsh-prompt/bb.zsh

[!NOTE]
If you want a fully-fledged prompt you should use one of the more sophisticated projects around github.
E.g. Pure ❤️.

Footnotes

  1. BackBone zsh prompt