Skip to content

Instantly share code, notes, and snippets.

paperclip.me
notetak.in
@taha
taha / .bashrc
Created August 26, 2012 21:37
Command prompt customisation to show git branch and status
RED="\[\033[0;31m\]"
YELLOW="\[\033[0;33m\]"
GREEN="\[\033[0;32m\]"
CYAN="\[\033[0;36m\]"
NO_COLOUR="\[\033[0m\]"
GIT_PROMPT_PREFIX="[git:"
GIT_PROMPT_SUFFIX="]$NO_COLOUR "
GIT_PROMPT_DIRTY="$RED+"
GIT_PROMPT_CLEAN="$GREEN"