forked from geerlingguy/mac-dev-playbook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
go.sh
executable file
·24 lines (18 loc) · 642 Bytes
/
go.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
#!/bin/sh
sudo softwareupdate --install-rosetta
if [ -d "~/mac-deploy" ]; then
git clone https://github.com/juanuicich/mac-dev-playbook.git ~/mac-deploy
fi
if ! command -v pip >/dev/null 2>&1; then
sudo easy_install pip
fi
if ! command -v ansible >/dev/null 2>&1; then
sudo pip install ansible
fi
ansible-galaxy install -r requirements.yml
ansible-playbook main.yml -i inventory -K
# Avoid apps sticking on the dock
defaults write com.apple.dock show-recents -bool no
defaults write com.apple.dock recent-apps -array # intentionally empty
# Show hidden files
defaults write com.apple.finder AppleShowAllFiles true; killall Finder