Skip to content

Instantly share code, notes, and snippets.

View mjmeintjes's full-sized avatar

Matt Meintjes mjmeintjes

  • Mattsum Limited
View GitHub Profile
#!/bin/bash
# Source: http://toomuchdata.com/2012/06/25/how-to-install-python-2-7-3-on-centos-6-2/
# Install stuff #
#################
# Install development tools and some misc. necessary packages
yum -y groupinstall "Development tools"
yum -y install zlib-devel # gen'l reqs
sudo apt-get -y update
sudo apt-get -y install zsh curl wget tmux vcsh git
curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh
#change sudo vi /etc/passwd #change shell to /bin/zsh
mkdir ~/tmp -p
cd ~/tmp
wget https://github.com/clvv/fasd/tarball/1.0.1
cd clvv-fasd-4822024
sudo make install
git clone git@bitbucket.org:mjmeintjes/dotfiles.git $HOME/.dotfiles
@mjmeintjes
mjmeintjes / .bashrc
Created July 5, 2011 16:01 — forked from henrik/.bashrc
Git branch and dirty state in Bash prompt.
# http://henrik.nyh.se/2008/12/git-dirty-prompt
# http://www.simplisticcomplexity.com/2008/03/13/show-your-git-branch-name-in-your-prompt/
# username@Machine ~/dev/dir[master]$ # clean working directory
# username@Machine ~/dev/dir[master*]$ # dirty working directory
function parse_git_dirty {
[[ $(git status 2> /dev/null | tail -n1) != "nothing to commit (working directory clean)" ]] && echo "*"
}
function parse_git_branch {
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e "s/* \(.*\)/[\1$(parse_git_dirty)]/"