-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup-host-macos.sh
More file actions
executable file
·45 lines (32 loc) · 1.13 KB
/
setup-host-macos.sh
File metadata and controls
executable file
·45 lines (32 loc) · 1.13 KB
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
#!/usr/bin/env bash
# script=$(curl -fsS "https://raw.githubusercontent.com/softvisio/scripts/main/setup-host-macos.sh")
# bash <(echo "$script")
set -Eeuo pipefail
trap 'echo "⚠ Error ($0:$LINENO, exit code: $?): $BASH_COMMAND" >&2' ERR
# set timezone
sudo systemsetup -settimezone UTC
# install brew
script=$(curl -fsS "https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh")
bash <(echo "$script")
# install brew packages
brew install bash wget htop mc nvim node cocoapods ios-sim
# setup bash
if ! grep -q "/usr/local/bin/bash" /etc/shells; then
sudo bash << EOF
echo /usr/local/bin/bash >> /etc/shells
EOF
sudo chsh -s /usr/local/bin/bash
fi
# install public dotfiles profile
script=$(curl -fsS "https://raw.githubusercontent.com/softvisio/scripts/main/update-dotfiles.sh")
source <(echo "$script") public
# setup cocoapods environment
pod setup
# update cocoapods repositories
pod repo update
# npm install --global ios-sim npm
npm install --global cordova
# install xcode devel tools
xcode-select --install
# set the patb to the active devel dir
# sudo xcode-select -s /Applications/Xcode.app/Contents/Developer