blob: 46d6ba84192372a36de6cacdbe1feda048b5eae7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#!/bin/sh
. $HOME/src/dotfiles/.shenv
# Bootstrap home directory after dotfiles repository successfully
# cloned (see ~/bin/insinuate-dotfiles). This script should
# definitely be POSIX sh
set -e
if ! [ -e "$HOME/.mrconfig" ]; then
cat >"$HOME/.mrconfig" <<EOF
# -*- mode: conf -*-
include = cat ~/src/dotfiles/lib-src/mr/config
EOF
fi
(
cd $HOME/src/dotfiles
mr fixups
mr stow
if [ -z $(git remote) ]; then
# don't set up any tracking branches or fetch it
git remote add origin athena:dotfiles
fi
)
|