blob: f9d4e241d9049a85e4aa02abb9d196fae0268199 (
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
|
#!/bin/bash
set -e
if [ ${PWD} != "/home/tmu/dotfiles" ]; then
echo "Not in ~/dotfiles, proceed manually"
exit 1
fi
git submodule update --init --recursive
confirm () {
[[ "$(read -e -p "$1 [y/N]> "; echo $REPLY)" == [Yy]* ]]
}
if confirm "Check and install symlinks?"; then
awk -f install.awk ensureddirs.csv symlinks.csv
fi
if confirm "Build Emacs?"; then
cd emacs-source
./setup.sh
cd ..
fi
echo "All set up, remember to source ~/.bash_profile and symlink tmubrowse and tmuterm."
|