aboutsummaryrefslogtreecommitdiff
path: root/hooks/housekeeping.hook
blob: 7fc77a989636e32ac59f290585d36fcfb0332646 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/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)" ] && yes_no "'.files' out of date. Regenerate?"; then
	echo "DOTFILEBASE=\"$(pwd)\"" > $HOME/.files
fi

if [ ! -f "$HOME/.files.config" ] && yes_no ".files.config does not exist. Populate with defaults?"; then
	cp "config.default" "$HOME/.files.config"
fi