Skip to content

Instantly share code, notes, and snippets.

View mgpb's full-sized avatar

Steve Bedford mgpb

View GitHub Profile
@mgpb
mgpb / .bashrc
Created April 19, 2011 05:03
bash prompt with git branch name and time since commit, based on what @garybernhardt did.
# It looks like this but with color and stuff:
# (macbot • sample_app ┣master ∆68m)$
# (macbot • autumn ┣master ∆2yr8mo)$
function relative_time_since_last_commit {
last_commit=`git log --pretty=format:'%ar' -1`
echo ${last_commit}
}