Skip to content

Instantly share code, notes, and snippets.

View sealan's full-sized avatar
codemastering

Séalan Cronin sealan

codemastering
View GitHub Profile
@markjames
markjames / git.sh
Created September 1, 2011 10:04
Going git
# The following commands
# need to be run once to set-up git
# Install git (you may have this already, type git then hit [ENTER] in Terminal to check)
cd ~/Downloads && curl -OL "http://git-osx-installer.googlecode.com/files/git-1.7.6-x86_64-snow-leopard.dmg" && open ~/Downloads/git-1.7.6-x86_64-snow-leopard.dmg
# Start a new Terminal window
# I don't have a command for this one
# Install the Git Flow extension
@markjames
markjames / gist:1180463
Created August 30, 2011 08:34
prompt customisation
function parse_git_branch_and_add_brackets {
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\ \[\1\]/'
}
PS1="\[\033[0;37m\]\h:\u\[\033[0m\] \W\[\033[0;32m\]\$(parse_git_branch_and_add_brackets) \[\033[0m\]\$ "