aboutsummaryrefslogtreecommitdiff
path: root/hooks/housekeeping.hook
blob: 15e4dda8650d4a88e13ae1c9d486790a865e891c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash

git submodule init
git submodule update

#.files is used to tell scripts where to look for the dotfiles
[ -f "$HOME/.files" ] && source "$HOME/.files"
if [ "$DOTFILEBASE" != "$(pwd)" ]; then
	echo "\~/.files is our of date. Updating."
	echo "DOTFILEBASE=\"$(pwd)\"" > $HOME/.files
fi

if [ ! -f "$HOME/.files.config" ]; then
	echo "Installing default configuration in ~/.files.config"
	cp "config.default" "$HOME/.files.config"
fi