blob: 9aaa534b05b2e958d4895b9af26e0bc8fc5ae03a (
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
#!/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
cd tree/src
if confirm "Build and use tcc?"; then
cd tcc
./setup.sh
cd ..
export CC=${HOME}/.local/bin/tcc
fi
if confirm "Build micro haskell?"; then
cd microhs
./setup.sh
cd ..
fi
if confirm "Build levee as vi?"; then
cd levee
./setup.sh
cd ..
fi
if confirm "Build dwm/st/slstatus/dmenu/unclutter?"; then
cd dwm
./setup.sh
cd ..
cd dmenu
./setup.sh
cd ..
cd st
./setup.sh
cd ..
cd slstatus
./setup.sh
cd ..
fi
if confirm "Build non-local tools (caps2esc) for openrc?"; then
cd capslock
./setup.sh
cd ..
fi
if confirm "Build Emacs?"; then
cd emacs
./setup.sh
cd ..
fi
echo "All set up, remember to source ~/.bash_profile and symlink tmubrowse and tmuterm."
|