Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 142 lines (104 sloc) 3.29 KB
set -e
cd "$HOME"
ln_s () {
ln -sfn "$DOTFILES_ROOT/$1" "$2"
echo "Checking for SSH key, generating one if it doesn't exist"
[[ -f ~/.ssh/ ]] || ssh-keygen -t rsa
echo "Copying public key to clipboard. Paste it into your Github account"
[[ -f ~/.ssh/ ]] && cat ~/.ssh/ | pbcopy
echo "Installing Homebrew"
/usr/bin/ruby -e "$(curl -fsSL"
brew doctor
brew update
echo "Installing GCC"
brew tap homebrew/versions
brew install gcc49
brew install libtool libyaml libksba
echo "Installing OpenSSL"
brew install openssl
echo "Installing GPG"
brew install gpg
echo "Installing Git"
brew install git
brew install git-flow
echo "Installing Exuberant Tags"
brew install ctags-exuberant
echo "Installing The Silver Searcher"
brew install the_silver_searcher
ln_s .agignore .
echo "Installing Tmux"
brew install tmux
echo "Installing Vim"
curl | tar -xz
cd vim73 && ./configure --with-features=huge --enable-cscope --enable-rubyinterp=dynamic --enable-multibyte && make && sudo make install
cd .. && rm -rf vim*
echo "Installing PostgreSQL"
brew install postgres --no-python
initdb /usr/local/var/postgres
echo "Installing Redis"
brew install redis
echo "Installing Go"
brew install go --cross-compile-all
echo "Installing Node"
brew install node
curl | sh
echo "Installing Keybase"
npm install -g keybase-installer
echo "Installing Chruby"
brew install chruby
ln_s .ruby-version .
echo "Installing ruby-install"
brew install ruby-install
echo "Configuring Ruby installation"
ln_s .pryrc .
echo "Installing Homebrew Cask"
brew install caskroom/cask/brew-cask
echo "Installing Virtualbox"
brew cask install virtualbox
echo "Installing Docker"
brew install docker
brew install boot2docker
brew install docker-compose
echo "Cloning dotfiles repo"
rm -rf ~/.dotfiles
git clone ~/.dotfiles
echo "Installing Oh-My-ZSH"
git clone ~/.oh-my-zsh
ln_s jodosha.zsh-theme .oh-my-zsh/themes
ln_s .zshrc .
[[ -f /etc/zprofile ]] || sudo mv /etc/zshenv /etc/zprofile
chsh -s /bin/zsh
echo "Configuring Tmux"
ln_s .tmux.conf .
echo "Configuring Git"
ln_s .gitconfig .
ln_s .gitignore_global .gitignore_global
git config --global core.excludesfile ~/.gitignore_global
echo "Installing user defined scripts"
mkdir -p ~/bin
ls bin | while read script; do ln_s "bin/$script" bin; done
# echo "Installing fonts"
# ls fonts | while read font; do open $font; done
# echo "Configuring iTerm2"
# open iTerm/Tomorrow\ Night.itermcolors
# cp iTerm/com.googlecode.iterm2.plist ~/Library/Preferences
echo "Configuring Vim"
ln_s .vim .
ln_s .vimrc .
echo "** Installing Vim plugins"
echo "Installing Ruby"
echo "** Configuring account"
mkdir -p ~/.gem
curl -u jodosha > ~/.gem/credentials
echo "** Configuring Heroku account"
curl | sh
heroku login
echo "Reloading the shell"
exec $SHELL -l