Skip to content

Instantly share code, notes, and snippets.

View realtimeprojects's full-sized avatar

Claudio Klingler realtimeprojects

View GitHub Profile
@realtimeprojects
realtimeprojects / git_svn_bash_prompt.sh
Created February 12, 2012 14:38 — forked from woods/git_svn_bash_prompt.sh
Set color bash prompt according to git/svn branch, and return status of last command.
#!/bin/bash
#
# DESCRIPTION:
#
# Set the bash prompt according to:
# * the branch/status of the current git repository
# * the branch of the current subversion repository
# * the return value of the previous command
#
# USAGE: