Skip to content

Instantly share code, notes, and snippets.

@chrahunt
Created September 27, 2014 00:16
Show Gist options
  • Save chrahunt/f0f25f2feedf3b31c1dd to your computer and use it in GitHub Desktop.
Save chrahunt/f0f25f2feedf3b31c1dd to your computer and use it in GitHub Desktop.
Script for loading my dotfiles
# This script uses homeshick to set up my dotfiles. In order for the
# updated .bashrc to be applied immediately, this file should be sourced,
# rather than executed directly. e.g.
# source bootstrap.sh
# Check for git
command -v git >/dev/null 2>&1 || { echo >&2 "Git required. Please install. Aborting."; exit 1; }
# Install homeshick
git clone git://github.com/andsens/homeshick.git $HOME/.homesick/repos/homeshick
source $HOME/.homesick/repos/homeshick/homeshick.sh
# Clone dotfiles repo
homeshick clone --batch chrahunt/dotfiles
# Link everything
homeshick link --force
# Source .bashrc
source $HOME/.bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment