/dotfiles

Primary LanguageEmacs Lisp

my-dotfiles

Setup

git init --bare $HOME/.cfg
alias config='git --git-dir=$HOME/.cfg/ --work-tree=$HOME'
config remote add origin git@github.com:xelamanster/dotfiles.git

Replication

git clone --separate-git-dir=$HOME/.cfg git@github.com:xelamanster/dotfiles.git cfg-tmp
rsync --recursive --verbose --exclude '.git' cfg-tmp/ $HOME/
rm --recursive cfg-tmp

Configuration

config config status.showUntrackedFiles no
config remote set-url origin git@github.com:xelamanster/dotfiles.git

Usage

config status
config add .gitconfig
config commit -m 'Add gitconfig'
config push