Skip to content

Instantly share code, notes, and snippets.

@alexbain
alexbain / chef_solo_bootstrap.sh
Created November 23, 2012 19:52 — forked from ryanb/chef_solo_bootstrap.sh
Bootstrap Chef Solo
#!/usr/bin/env bash
# Ensure things are up to date
apt-get -y update
apt-get -y upgrade
# Setup a build environment
apt-get install build-essential
apt-get install -y zlib1g-dev libssl-dev lib64readline-gplv2-dev libyaml-dev
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/-(git\/ \1 )/'
}
# set a fancy prompt (non-color, unless we know we "want" color)
case "$TERM" in
xterm-color) color_prompt=yes;;
esac
force_color_prompt=yes