I got tired of manually redoing my settings every time I used a new macbook for work or personal use, decided it’d be better to keep my settings in a central location.
-
Optional: Add the following line to
/etc/hosts/
:0.0.0.0 ocsp.apple.com
(disables apple phoning home for app verification). Then run:sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
(to refresh hosts). -
Install Homebrew.
-
Install Warp Terminal.
-
Clone this repo and run the first setup script.
cd ~/Downloads;\ printf 'y\n' | git clone [email protected]:kaibyao/My-OSX-Config.git;\ cd laptop-setup;\ ./setup-1.sh;\ # extra line break to ensure the above gets run
-
Close your current Terminal.app window, and open a new one. Make sure zsh is your current shell.
echo $SHELL # should return: /usr/local/bin/zsh
-
Run the second setup script.
cd ~/Downloads/laptop-setup;\ ./setup-2.sh;\ # extra line break to ensure the above gets run
This installs the following:
- Iosevka and Roboto Mono fonts (used for VSCode and iTerm, respectively).
- Prezto for zsh (enhances your terminal experience).
- Other homebrew utils
- iTerm
- The latest version of git
- p4merge as a mergetool for git
- optimal git configs
- Visual Studio Code + useful extensions/settings
- asdf, node, and yarn (for javascript development)
- Firefox and Chrome
-
Make Visual Studio Code accessible from command line.
- Open Visual Studio Code.app.
- Type Command-Shift-P to open the “Run...” menu.
- Type “path”. You should see the choices available filter down to 2–3 choices.
- Select
Shell Command: Install 'code' command in PATH
. - Now you can open VSCode with the current working folder from your terminal by typing
code .
.
-
Optionally, run the
extra-osx-perf-scripts.sh
script in this repo to disable extra MacOS fluff features (like window transparency, animations, etc). Overall it should speed up your laptop../extra-osx-perf-scripts.sh
-
Install Moom
- General preferences
- Check
Launch automatically on login
- Uncheck
Show preferences on launch
- Run as
menu bar
application
- Check
- Mouse (leave alone)
- Keyboard
- Check
Show cheat sheet
andRepeat to show grid
- Command held:
Move to other display
- Auto-dismiss keyboard control after:
- Check
Move & Zoom
- Uncheck
Move, Grow, Shrink
- Check
Other actions
- Check
- Check
- General preferences
-
(Optional) Sublime Text setup
-
(Optional) Sketch setup
-
(Optional) Omnigraffle setup