Skip to content

Instantly share code, notes, and snippets.

@JoyBrad
JoyBrad / .bash_prompt
Last active May 9, 2022 06:10 — forked from kfcobrien/.BASH-PROMPT.png
Clean informative bash prompt with git info
#echo $PWD
# enable git-prompt only if you're in a git repo
is_git()
{
git rev-parse --git-dir &>/dev/null
status=$?