-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall.sh
executable file
·58 lines (42 loc) · 1.43 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
#!/usr/bin/env bash
# Exit on error. Append "|| true" if you expect an error.
set -o errexit
# Exit on error inside any functions or subshells.
set -o errtrace
# Do not allow use of undefined vars. Use ${VAR:-} to use an undefined VAR
set -o nounset
# Catch the error in case first pipe command fails (but second succeeds)
set -o pipefail
__script_dir="$(cd "$(dirname "${BASH_SOURCE[${__b3bp_tmp_source_idx:-0}]}")" && pwd)"
# Configuration
trackpad=false # there is a trackpad in this computer?
apple_language="en" # system language
# Note: if you’re in the US, replace `EUR` with `USD`, `Centimeters` with
# `Inches`, `en_GB` with `en_US`, and `true` with `false`.
apple_locale="pt_BR@currency=USD"
apple_measurement_units="Centimeters"
apple_metric_units=true
timezone="America/Sao_Paulo"
# include some helpers
source ./sh/helpers.sh
source ./sh/echos.sh
bot "Hi! I'm going to install some packages and tweak your system settings."
# Ask for the administrator password upfront
ask_admin_password
# ensure homebrew is installed
ensure_homebrew_is_installed
# install brew (and cask) packages defined in `Brewfile`
brew_bundle
# install npm global packages defined in npm_globals.txt
npm_global_install
# run some MacOS tweaks
macos_tweaks
# initialize / updates submodules
init_submodules
# symlink dotfiles
do_symlink
# run homebrew cleanup
homebrew_cleanup
# copying other files
copy_other_files
bot "All done! You might need to restart now :)"