Skip to content

Instantly share code, notes, and snippets.

@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:
@orneryd
orneryd / gist:909fa5c66002d92f1506
Last active August 29, 2015 14:10
Marionette securedRouter
define([
'underscore',
'marionette'
], function(_, Marionette) {
'use strict';
/**
* SecureRouter
*
* This class is similar to the marionette Approuter except
#!/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: