|
1 | 1 | # Mac setup
|
2 | 2 |
|
3 |
| -1. Install commandline developer tools: |
| 3 | +1. Manually install commandline developer tools: |
4 | 4 | ```
|
5 | 5 | touch /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress;
|
6 | 6 | xcode_version="$(softwareupdate --list | grep -E --only-matching "Command Line Tools for Xcode-[0-9]+\.[0-9]+" | tail -n 1)"
|
7 | 7 | softwareupdate --install "$xcode_version" --verbose
|
8 | 8 | rm /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress
|
9 | 9 | ```
|
10 |
| -1. [Install brew](https://brew.sh/) (requires sudo) |
| 10 | +1. Manually [install brew](https://brew.sh/) (requires sudo) |
11 | 11 | 1. Run the following to download the latest release of this repo and then run the setup script:
|
12 | 12 | ```bash
|
13 | 13 | setup_repo="$(mktemp -d)"
|
|
18 | 18 | mkdir -p "${HOME}/Library/LaunchAgents"
|
19 | 19 | bash ${setup_repo}/*mac-setup*/setup.sh
|
20 | 20 | ```
|
21 |
| -1. Retrieve SSH private key from password manager and copy it into ~/.ssh/id_rsa |
| 21 | +1. Retrieve SSH private key from password manager and copy it into `~/.ssh/id_rsa` with file permissions 400 |
22 | 22 | 1. Run `eval "$(ssh-agent -s)"`
|
23 |
| -1. Run `ssh-add --apple-use-keychain ~/.ssh/id_rsa` |
24 |
| -1. Sync settings for Brave |
25 |
| -1. Start iterm2 and import `iterm2.json` as a profile via the iterm GUI (check `Working Directory` is correct) |
26 |
| -1. Start Visual Studio Code and sync settings by logging in with GitHub Auth |
| 23 | +1. Run `ssh-add ~/.ssh/id_rsa` |
| 24 | +1. Start and manually setup settings syncing for Brave, Warp and Visual Studio Code |
27 | 25 | 1. Run the following to update system settings:
|
28 | 26 | ```bash
|
29 | 27 |
|
|
33 | 31 | sudo defaults write /Library/Preferences/com.apple.SoftwareUpdate AutomaticCheckEnabled -bool true
|
34 | 32 | sudo defaults write /Library/Preferences/com.apple.SoftwareUpdate AutomaticDownload -bool true
|
35 | 33 | sudo defaults write /Library/Preferences/com.apple.commerce AutoUpdateRestartRequired -bool true
|
| 34 | +
|
36 | 35 | # enable firewall
|
37 | 36 | sudo defaults write /Library/Preferences/com.apple.alf globalstate -int 2
|
| 37 | +
|
38 | 38 | # enable FileVault encryption (interactive)
|
39 | 39 | sudo fdesetup enable
|
40 |
| - # show bluetooth in menu bar |
41 |
| - sudo defaults write ~/Library/Preferences/ByHost/com.apple.controlcenter.plist Bluetooth -int 18 |
42 | 40 | ```
|
0 commit comments