1
1
# Mac setup
2
2
3
- Run ` ./ setup.sh `
3
+ Run the following to download the latest release of this repo and then run the setup script:
4
4
5
- ## Manual steps:
5
+ ``` bash
6
+ setup_repo=" $( mktemp -d) "
7
+ zipball_url=" $( curl -s https://api.github.com/repos/will-gant/mac-setup/releases/latest | grep zipball_url | cut -d ' "' -f 4) "
8
+ zip_file=" ${setup_repo} /repo.zip"
9
+ curl --location " $zipball_url " --output " ${setup_repo} /repo.zip"
10
+ unzip " $zip_file " -d " $setup_repo "
11
+ bash " $setup_repo /*mac-setup*/setup.sh
12
+ ` ` `
6
13
7
- These should be run _ after _ running the setup script.
14
+ # # Manual steps:
8
15
16
+ These should be run _after_ the setup script completes.
9
17
# ## Git
10
18
11
19
1. Retrieve SSH private key from password manager
12
- 1 . Copy into ~ /.ssh/id_rsa
20
+ 1. Copy it into ~ /.ssh/id_rsa
13
21
1. Run ` eval " $( ssh-agent -s) " `
14
22
1. Run ` ssh-add --apple-use-keychain ~/.ssh/id_rsa`
15
23
@@ -20,3 +28,29 @@ Import `iterm2.json` as a profile via the iterm GUI
20
28
# ## VScode
21
29
22
30
Switch on ' sync' and login with GitHub
31
+
32
+ # ## System settings
33
+
34
+ NB. These take effect after a restart
35
+
36
+ ` ` ` bash
37
+ # keyboard
38
+ sudo defaults write /Library/Preferences/com.apple.HIToolbox AppleCurrentKeyboardLayoutInputSourceID " com.apple.keylayout.British"
39
+ sudo defaults write /Library/Preferences/com.apple.HIToolbox AppleDefaultAsciiInputSource -dict InputSourceKind " Keyboard Layout" " KeyboardLayout ID" -int 2 " KeyboardLayout Name" British
40
+ sudo defaults delete /Library/Preferences/com.apple.HIToolbox AppleEnabledInputSources
41
+
42
+ # updates
43
+ sudo defaults write /Library/Preferences/com.apple.commerce AutoUpdate -bool true
44
+ sudo defaults write /Library/Preferences/com.apple.SoftwareUpdate ConfigDataInstall -bool true
45
+ sudo defaults write /Library/Preferences/com.apple.SoftwareUpdate CriticalUpdateInstall -bool true
46
+ sudo defaults write /Library/Preferences/com.apple.SoftwareUpdate AutomaticCheckEnabled -bool true
47
+ sudo defaults write /Library/Preferences/com.apple.SoftwareUpdate AutomaticDownload -bool true
48
+ sudo defaults delete /Library/Preferences/com.apple.HIToolbox AppleEnabledInputSources
49
+ sudo defaults write /Library/Preferences/com.apple.commerce AutoUpdateRestartRequired -bool true
50
+
51
+ # enable firewall
52
+ sudo defaults write /Library/Preferences/com.apple.alf globalstate -int 2
53
+
54
+ # enable FileVault encryption (interactive)
55
+ sudo fdesetup enable
56
+ ` ` `
0 commit comments