-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.sh
executable file
·94 lines (73 loc) · 2.63 KB
/
main.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
#!/usr/bin/env bash
set -o errexit
set -o nounset
set -o pipefail
. scripts/utils.sh
. scripts/cli.sh
. setup_stow.sh
. scripts/brew.sh
. scripts/osx.sh
. scripts/setup_mas.sh
. scripts/tmux_tpm.sh
cleanup() {
err "Last command failed"
info "Finishing..."
}
wait_input() {
read -rp "Press enter to continue: "
}
install_xcode() {
if xcode-select -p >/dev/null; then
warn "xCode Command Line Tools already installed"
else
info "Installing xCode Command Line Tools..."
xcode-select --install
sudo xcodebuild -license accept
fi
}
main() {
warn "Setting up OSX"
echo -e "\n"
info "################################################################################"
info "Xcode Commandline Tools"
info "################################################################################"
install_xcode
info "################################################################################"
info "Homebrew Packages"
info "################################################################################"
install_homebrew
success "Finished installing Homebrew packages"
setup_fzf_completion
success "Finished setting up fzf completion"
info "################################################################################"
info "MacOS Apps"
info "################################################################################"
warn "You should already be signed into the App Store to continue"
wait_input
install_macApps
success "Finished install mac apps"
info "################################################################################"
info "Golang tools"
info "################################################################################"
install_go_tools
success "Finished installing Golang tools"
info "################################################################################"
info "Rust init"
info "################################################################################"
init_rust
success "Finished installing rust (via rustup-init)"
info "################################################################################"
info "Tmux Plugins"
info "################################################################################"
install_tmux_tpm
success "Finished installing tmux plugins"
info "################################################################################"
info "Configuration"
info "################################################################################"
wait_input
setup_osx
success "Finished configuring MacOS defaults. NOTE: restart is needed"
stow_dotfiles
success "Finished stowing dotfiles"
}
main