/dotfiles

Configuration files

Primary LanguageShell

dotfiles

Prereq

Installing on to a new system

cd ~
alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'
echo ".cfg" >> .gitignore
git clone --bare git@github.com:weizhongtan/dotfiles.git $HOME/.cfg
mkdir -p .config-backup
config checkout 2>&1 | egrep "\s+\." | awk {'print $1'} | xargs -I{} mv {} .config-backup/{}
config config --local status.showUntrackedFiles no

# first-time installation setup
~/.dotfiles/setup.sh

# setup git config for dotfiles updates
config config user.name NAME
config config user.email EMAIL

adapted from source

Todo

  • Fix OSX settings
  • Replace antibody with antidote