Skip to content

Instantly share code, notes, and snippets.

@kelp
Created November 20, 2011 07:47
Show Gist options
  • Save kelp/1379943 to your computer and use it in GitHub Desktop.
Save kelp/1379943 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Discover what sort of system we're on
case "$OS" in
Darwin)
darwin_bootstrap
;;
Linux)
linux_bootstrap
;;
*)
echo "Error: This script only supports Darwin and Linux"
exit 1
esac
# Check if something is already installed, if not, install
# with homebrew
brew_install() {
}
darwin_bootstrap() {
if [ ! -f /usr/bin/gcc ]; then
echo "I can't find gcc, you probaly have to install Xcode"
echo "Go to the App Store and download it, then run the installer"
exit 1
fi
# See if we have homebrew, if not, install it
if [ -f /usr/local/bin/brew ]; then
echo "Good, you already have homebrew, I'll ensure it's updated"
brew update
else
/usr/bin/ruby -e "$(curl -fsSL https://raw.github.com/gist/323731)"
fi
brew_install git
brew_install bash-completion
brew_install dict
brew_install wget
brew_install mtr
brew_install gnupg
brew_install coreutils
brew_install gist
# Install RVM
bash < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
# Setup RVM to default to ruby 1.9
# Install macvim
brew_install macvim
}
linux_bootstrap() {
# Check if we're on a Redhat like or Debian like system
}
# Install stuff that's generic to Linux and Darwin
# Install janus
for i in ~/.vim ~/.vimrc ~/.gvimrc
do
[ -e $i ] && mv $i $i.old;
done
git clone git://github.com/carlhuda/janus.git ~/.vim`
cd ~/.vim
rake
cd
# Install oh-my-zsh, maybe? https://github.com/robbyrussell/oh-my-zsh
# Install shell init
# Install cloudapp_api gem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment