* screenshot taken in warp terminal
A bare minimum single file prompt, fast as a roadrunner MEEP! MEEP! 💨 ...
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!
Clone the repository into ~/.config/zsh
:
git clone git@github.com:lmllrjr/backbone-zsh-prompt.git ~/.config/zsh/backbone-zsh-prompt
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.
Tip
More information on the Projects Path can be found in the wiki!
Just set the variables in your .zshrc
file.
Important
Make sure to set the vars before actually loading the prompt!
# 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
-
BackBone zsh prompt ↩