Below is the file '.zshsync' from this revision. You can also download the file.
zshsync ()
{
mtn=`which mtn`
if [[ -z $mtn ]]; then
echo "Monotone is not installed!"
return 1
fi
mtndb="$HOME/.dotfiles.mtn.db"
if [[ ! -e "$mtndb" ]]; then
mtn --db="$mtndb" db init
fi
pull_branch="net.angrygoats.private.dotfiles"
pull_from="ssh://grahame@martello.ucc.gu.uwa.edu.au/home/wheel/grahame/mtn/db/angrygoats.db"
mtn --db="$mtndb" sync "$pull_from" "$pull_branch"
if [[ -d "$HOME/_MTN" ]]; then
cd "$HOME" && mtn update
else
echo "checking out"
cd "$HOME" && mtn --branch="$pull_branch" --db="$mtndb" co .
fi
}