Skip to content

Instantly share code, notes, and snippets.

View partial.bash_rc
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;;
#!/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
You can’t perform that action at this time.