I recently setup a new MacBook as my primary machine and I made these notes in the hope they will streamline the process for me in the future.
Fix Trackpad Direction
System Settings > Trackpad > Scroll & Zoom (tab)
Turn off Natural scrolling
Close System Preferences
Map Caps Lock to Esc
System Settings > Keyboard > Keyboard Shortcuts > Modified Keys
Change Caps Lock to Escape
Click Done
Disable Two Spaces Become Period
System Settings > Keyboard > Text Input > Input Sources > Edit...
Turn off Add period with double-space
Click Done
Install Brew
The brew website includes this command you can run to install.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Download and Install
Install Programs via Brew
brew install --cask 1password
brew install --cask wezterm
brew install --cask firefox
brew install --cask google-chrome
brew install --cask harvest
brew install --cask alfred
brew install --cask macvim
brew install --cask private-internet-access
brew install --cask iterm2
brew install --cask slack
brew install --cask zoom
brew install --cask dropbox
brew install --cask docker
brew install --cask spotify
brew install --cask screenflow
brew install --cask local
brew install --cask font-source-code-pro
brew install --cask tableplus
brew install git
brew install tmux
brew install neovim
brew install php
brew install vim
brew install gpg
brew install ripgrep
brew install gh
brew install svn
brew install jq
brew install fzf
brew install wp-cli
Alfred Setup
System Settings>Keyboard>Keyboard Shortcuts>Spotlight> UncheckShow Spotlight searchSystem Settings>Keyboard>Keyboard Shortcuts>Spotlight> UncheckShow Finder search windowAlfred>Preferences>General>Alfred Hot Keyset to (Command + Space)Alfred>Preferences>Features>File Search>Navigation> Check “Use ⏎ to open folders in Finder”Alfred>Preferences>Features>Universal Actions>General>Selection Hotkeyset to⌥ ⌘ SpaceAlfred>Preferences>Features>SnippetsAuto Expansion Options>Sounds> Uncheck both:Play sound when expanding SnippetPlay sound when expanding Workflow Snippet Trigger
Alfred>Preferences>Features>System> Uncheck all butEmpty TrashLock
Alfred Snippets
Alfred Workflows
Install Harvest
See Harvest Mac App
Install NVM
See NVM Install & Update Script
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
Install My Zsh Configuration
git clone git@github.com:salcode/salcode-zsh.git ~/salcode-zsh.git
echo 'source ~/salcode-zsh/zshrc' >> ~/.zshrc
from https://github.com/salcode/salcode-zsh
Install My Git Configuration
Install My Neovim Configuration
Chrome Extensions
- 1Password extension (desktop app required)
- uBlock origin
- Privacy Badger
- JSONView
- ModHeader
- Harvest Time Tracker
Change Default App Files Open with
.txt open with MacVim
See https://osxdaily.com/2011/02/01/change-default-app-file-opens-with-mac/
SSH Keys
Add SSH Keys
Copy config and desired keys from ~/.ssh/ on the old machine.
Generate new SSH Keys
Install Composer
Install Composer Locally
Get the commands to run from https://getcomposer.org/download/
This is the command that needed to be run at the time this was originally written but it is likely it has since been updated, get the latest from the URL.
e.g.
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('sha384', 'composer-setup.php') === '572cb359b56ad9ae52f9c23d29d4b19a040af10d6635642e646a7caa7b96de717ce683bd797a92ce99e5929cc51e7d5f') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"
Move Composer to be Run Globally
mv composer.phar /usr/local/bin/composer
Copy auth.json from old machine
Get ~/.composer/auth.json on old machine and copy to new machine.
Configure Tmux
Follow the instructions at https://github.com/salcode/ironcode-tmux, i.e.
git clone git@github.com:salcode/ironcode-tmux.git ~/ironcode-tmux
ln -sf ~/ironcode-tmux/tmux.conf ~/.tmux.conf
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
tmux source ~/.tmux.conf
Run tmux and then from within tmux hit
Ctrl + b, I
Install NVM
See https://github.com/nvm-sh/nvm#install–update-script
e.g. At the time of this writing, the instructions say
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
nvm install stable
nvm use stable
then set global default versions with
nvm alias default node
Finder Modifications
- Add my home folder to favorites sidebar
View>Show Path Bar
Screenshots
- How To Remove the Mac OS X Screenshot Delay
- Mac Change Screenshot Location
- Add screenshot directory to Favorites sidebar
Allow Dragging with Touchpad
System Settings > Accessibility > Motor > Pointer Control > Trackpad Options
Turn on Use trackpad for dragging
See Can’t Drag Files in Finder (Mac)
Dock
Remove as many items as possible.
System Settings > Desktop & Dock
Position on screensetLeftAutomatically hide and show the Dockturn onShow suggested and recent apps in Dockturn offSizeset tosmall
Battery
System Settings > Battery > Options > Slightly dim the display on battery` turn off
Lock Screen
System Settings > Lock Screen
Turn display off on battery when inactiveset to20 minutesTurn display off on power adapter when inactiveset to20 minutesShow message when lockedturn on and set toSal Ferrarello (@salcode)
Firewall
System Settings > Network > Firewall
Leave a Reply