Skip to content

Latest commit

 

History

History
31 lines (28 loc) · 865 Bytes

README.md

File metadata and controls

31 lines (28 loc) · 865 Bytes

dotfiles

Setup

mkdir $XDG_DATA_HOME/dotfiles
git init --bare $XDG_DATA_HOME/dotfiles
echo "alias dotfiles='git --git-dir=$XDG_DATA_HOME/dotfiles/ --work-tree=$HOME'" >> $HOME/.bashrc
alias dotfiles='git --git-dir=$XDG_DATA_HOME/dotfiles/ --work-tree=$HOME'
dotfiles config --local status.showUntrackedFiles no
dotfiles remote add origin [email protected]:ifohancroft/dotfiles.git
dotfiles add .bashrc
dotfiles status
dotfiles commit -m "Added .bashrc"
dotfiles push -u origin master

Replication

git clone --bare [email protected]:ifohancroft/dotfiles.git $XDG_DATA_HOME/dotfiles
alias dotfiles='git --git-dir=$XDG_DATA_HOME/dotfiles/ --work-tree=$HOME'
dotfiles checkout -f
dotfiles config --local status.showUntrackedFiles no

Usage

dotfiles status
dotfiles add .Xresources
dotfiles commit -m "Added .Xresources"
dotfiles push