Skip to content

Instantly share code, notes, and snippets.

View edgar's full-sized avatar

Edgar Gonzalez edgar

View GitHub Profile
@edgar
edgar / git_svn_bash_prompt
Created August 22, 2011 14:46
Set the bash prompt according to: branch/status of the current git/svn repository, rvm/ruby version and gemset used
#!/bin/bash
#
# DESCRIPTION:
#
# Set the bash prompt according to:
# * the branch/status of the current git/svn repository
# * the return value of the previous command
# * the current rvm ruby version and gemset (or plain ruby, check parse_ruby_version function)
#
# USAGE:
@woods
woods / git_svn_bash_prompt.sh
Created December 4, 2008 15:37 — forked from halbtuerke/gist:31934
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: