This repository include some of my dotfiles.
For file-tracking I use the set-up described by StreakyCobra on Hacker News.
- Initialization of the git repository takes place in
$HOME.
git init --bare $HOME/.dotfiles
alias dotgit='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
dotgit config status.showUntrackedFiles no- Next one would add a handful of dotfiles that are of interest to track file changes.
dotgit status
dotgit add .vimrc .profile .tmux.conf .bash_aliases .local/include/*
dotgit commit -m "initial commit"
dotgit push- For fetching the configuration files from the repository on a new machine (migration of the setup), one needs to define the dotgit alias beforehand as such:
alias dotgit='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
dotgit config status.showUntrackedFiles noWhen done. The dotfiles can be cloned into a bare repository referring to the
.dotgit directory.
git clone --bare <git-repo-url> $HOME/.dotfiles
dotgit checkoutConfig files tracking without additional tools. Just git!
Tasks:
- Add more configuration files
- Add automated script for fetching and backups