-
Notifications
You must be signed in to change notification settings - Fork 4
/
install.sh
executable file
·72 lines (58 loc) · 1.48 KB
/
install.sh
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
72
#!/usr/bin/env bash
set -eu -o pipefail
./installer/ubi.sh
# shellcheck source=bash_functions.sh
source ~/dot-files/bash_functions.sh
./installer/symlinks.sh
run_installer() {
echo "running $1"
echo ""
time bash "$1"
echo ""
}
run_installers() {
local installers=("$@")
for installer in "${installers[@]}"; do
run_installer "$installer"
done
}
add_path "$HOME/local/bin"
run_mac_installers() {
local mac_installers=(
./installer/xcode.sh
# time ./installer/homebrew-maintenance.sh || true
# ./installer/fonts.sh
# https://github.com/kcrawford/dockutil/issues/127
# ./installer/dockutil.sh
#./configure/dock.sh
./installer/spoon-installer.sh
)
run_installers "${mac_installers[@]}"
debounce 1 d ./installer/homebrew.sh
}
run_general_installers() {
local installers=(
./installer/linux.sh
./installer/wezterm.sh
./configure/git.sh
./configure/ssh.sh
./installer/nvim.sh
./configure/vim.sh
./configure/tmux.sh
./installer/npm.sh
./installer/cpan.sh
./installer/cargo.sh
./installer/cz.sh
./installer/imgcat.sh
./configure/bat.sh
./installer/oh-my-posh.sh
)
run_installers "${installers[@]}"
debounce 7 d ./installer/maintenance.sh
}
if is os name eq darwin; then
run_mac_installers
debounce 30 d ./configure/screenshots.sh
fi
run_general_installers
exit 0