Skip to content

Instantly share code, notes, and snippets.

@loopj
Created June 17, 2012 21:01
Show Gist options
  • Select an option

  • Save loopj/2945733 to your computer and use it in GitHub Desktop.

Select an option

Save loopj/2945733 to your computer and use it in GitHub Desktop.
Bootstrap dotfiles
#!/bin/sh
#
# Quickly set up a server the way I like it (dotfiles + zsh + oh-my-zsh)
#
# Requires git and zsh to be installed on the machine
#
# Usage:
# curl https://raw.github.com/gist/2945733/82c7487f5a4d99508e7a6150dfa88156b8e88943/dotfiles.sh | sh
#
# Make sure we are in my home directory
cd ~
# Extract and link my dotfiles
rm -rf config-files
git clone -q https://github.com/loopj/config-files
ln -sf config-files/.* .
rm -rf .git
# Set up oh-my-zsh
rm -rf .oh-my-zsh
git clone -q https://github.com/loopj/oh-my-zsh .oh-my-zsh
# Set the login shell to zsh
chsh -s /usr/bin/zsh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment