Skip to content

Instantly share code, notes, and snippets.

git clone --bare https://github.com/relausen/config.git $HOME/.cfg
function cfg {
git --git-dir=$HOME/.cfg/ --work-tree=$HOME $@
}
mkdir -p .config-backup
cfg checkout
if [ $? = 0 ]; then
echo "Checked out config.";
else
echo "Backing up pre-existing dot files.";