-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmac.sh
More file actions
executable file
·48 lines (41 loc) · 775 Bytes
/
mac.sh
File metadata and controls
executable file
·48 lines (41 loc) · 775 Bytes
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
#!/usr/bin/env bash
set -eu
source ./_common.sh
source ./_brew.sh
OS_ALIAS="mac"
bootstrap() {
install_brew
update_brew
brew_install_pkg "$OS_ALIAS-brew"
install_or_update_rust
install_or_update_aws_cli_mac
# install_or_update_aws_sam_cli_mac
}
post_config_os() {
post_config_generic
link_home "bash/$OS_ALIAS.sh" ".bashrc"
link_home "zsh/$OS_ALIAS.sh" ".zshrc"
}
do_update() {
update_brew
install_or_update_rust
install_or_update_aws_cli_mac
# install_or_update_aws_sam_cli_mac
}
main() {
if should_config; then
pre_config_generic
post_config_os
return
elif should_update; then
do_update
return
elif should_full; then
pre_config_generic
bootstrap
post_config_os
return
fi
}
set_run_mode "$@"
main