Skip to content

Instantly share code, notes, and snippets.

@rbottomley
Last active November 18, 2015 01:55
Show Gist options
  • Save rbottomley/80ff6b77d10664d2f8d7 to your computer and use it in GitHub Desktop.
Save rbottomley/80ff6b77d10664d2f8d7 to your computer and use it in GitHub Desktop.
My git notes.
# Add to end of .bashrc. Uses git-prompt.sh from github to set branch in Bash prompt.
. ~/.git-prompt.sh
GIT_PS1_SHOWCOLORHINTS=1
PROMPT_COMMAND='__git_ps1 "\n\[\033[01;37;44m\]\u@\h \[\033[01;37;40m\] \d \$(date +%I:%M:%S%P)\n\[\033[01;33;40m\]\w" ">\[\033[00m\] " "(%s\[\033[01;33;40m\])"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment