Skip to content

Instantly share code, notes, and snippets.

View braveulysses's full-sized avatar

Jacob Childress braveulysses

View GitHub Profile
require 'rubygems'
require 'sinatra'
require 'redis'
# To use, simply start your Redis server and boot this
# example app with:
# ruby example_note_keeping_app.rb
#
# Point your browser to http://localhost:4567 and enjoy!
#
@braveulysses
braveulysses / py-git-bash.sh
Created February 2, 2010 05:27 — forked from flashingpumpkin/py-git-bash.sh
show git status at bash prompt
function _bash_git_status() {
[[ $(git status 2> /dev/null | tail -n1) != "nothing to commit (working directory clean)" ]] && echo "*"
}
function _bash_git() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/±\1$(_bash_git_status)/'
}
function prompt() {
local BLACK="\[\033[0;30m\]"