#!/usr/bin/env sh

set -e

mkdir -p $HOME/.config
cd $HOME/.config
git init
git remote add origin "http://cgit.tilde.town/~noa/dots/"
git fetch origin
git checkout -b main --track origin/main
git remote set-url origin noa@tilde.town:public_git/dots

echo
echo "Configuration files installed."
echo "You probably want to run ~/.config/setup.sh now."