This is a checklist for setting up and personalising a new Mac.
See Setting Up a New Mac: Tools and Apps for apps and tools to install on a new Mac.
Last used for macOS Sonoma 14.2.1 on a MacBook Air M1 (2020).
Install updates
- Go to System Settings > General > Software Update and install any system udpates
- Go to App Store > Updates and selecting Update All and install any app updates
Install Xcode Command Line Tools
Run the following command in a terminal and follow the dialog:
xcode-select --install
Disable iCloud Drive
Go to System Settings > Apple ID and under Apps Using iCloud, set iCloud Drive to Off.
This disables any confusing file dialogs and Finder entries.
Customise gestures
- Go to System Preferences > Trackpad
- Under Point & Click, enable Tap to click
- Under More Gestures, disable Notification Centre
- Enable three-finger dragging of windows as follows:
- Go to System Preferences > Accessibility > Pointer Control > Trackpad Options…
- Enable Use trackpad for dragging
- Set Dragging style to Three-Finger Drag
Note: the Notification Centre can always be opened by clicking on the time and date in the menu bar.
Customise menu bar
- Go to System Preferences > Control Centre
- Select which items to display in the menu bar
- Enable displaying of battery percentage in menu bar by enabling Battery > Show Percentage
- Rearrange items in the menu bar by holding Command and dragging the items in the menu bar
Customise Dock
- Go to System Preferences > Desktop & Dock
- Enable Automatically hide and show the Dock
- Disable Show suggested and recent apps in Dock
- Select which items to include in the Dock by dragging unwanted items to the Bin and dragging wanted apps and directories into the dock
Disable unnecessary sounds
- Disable the startup sound by going to System Settings > Sound and disabling Play sound on startup.
- Disable the power chime by executing the following:
defaults write com.apple.PowerChime ChimeOnNoHardware -bool true
The power chime is a short sound that plays by default when connecting a charging cable.
- Log out of macOS and log in again
This is necessary for the disabling of the power chime to take effect.
Disable unnecessary automatic settings
- Go to System Preferences
- Under Desktop & Dock, disable Automatically rearrange Spaces based on most recent use
- Under Displays, disable Automatically adjust brightness
Enable snap-to-grid for Desktop icons
Right-click anywhere on the Desktop, click on Show View Options and select Sort By > Snap to Grid.
Disable floating screenshot thumbnails
- Press Command-Shift-5
- In the appearing user interface, click on Options and disable Show Floating Thumbnail
This ensures that screenshots are immediately saved to disk instead of being presented as a floating thumbnail for a few seconds.
Customise Finder
- Go to Finder > Settings…
- Under Sidebar, select which items to display in the sidebar
- Under General, set New Finder windows show: to Desktop
- Under Advanced, do the following:
- Enable Show all filename extensions
- Disable Show warning before changing an extension
- Set When performing a search: to Search the Current Folder
- Go to Finder > View and enable Show Status Bar and Show Path Bar
- Include the
$HOME/Library
directory in Finder by executing the following:chflags nohidden ~/Library
Customise TextEdit
- Go to TextEdit > Settings…
- Under the New Document tab, do the following:
- Under Format, select Plain text
- Under Window Size_, set _Width_ to _80**
- Under Font, set Plain text font to Menlo Regular 12
- Under Options, uncheck all the check boxes
- Under the Open and Save tab, do the following:
- Under When Opening a File, do the following:
- Enable Display HTML files as HTMl code instead of formatted text
- Enable Display RTF files as RTF code instead of formatted text
- Under When Saving a File, disable Add “.txt” extension to plain text files
- Under When Opening a File, do the following:
Customise keyboard
- Install the Logitech Swiss German keyboard layout by following the instructions here (GitHub).
- Go to System Preferences > Keyboard > Keyboard Shortcuts… > Modifier Keys…, and do the following:
- Set Caps Lock to Control
- Set Control to Caps Lock
- Set Option to Command
- Set Command to Option
This swaps the functions of the Caps Lock and Control, and Option and Command keys, respectively.
- Go to System Preferences > Keyboard, and set Press 🌐 key to to Do Nothing
This disables the globe functionality and makes the globe (🌐) key act like a normal fn key, which is necessary for Fluor (will be installed later). The input source can always be changed with Control-Space, even without the globe key.
Install Homebrew and default Homebrew formulas
- Install Homebrew by executing the following command (may also be copied from https://brew.sh):
bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- Install the default Homebrew formulas from weibeld-personalisation/brewfile by executing the following commands:
curl https://raw.githubusercontent.com/weibeld-personalisation/brewfile/main/Brewfile >Brewfile /opt/homebrew/bin/brew bundle install --file Brewfile
Note: on Macs with Intel chips, the path of the
brew
executable is/usr/local/bin
instead of/opt/homebrew/bin
(see documentation).
Set Bash as the default shell
To set the version of Bash installed by Homebrew as the default shell instead of the native Zsh, do the following (see more information in Upgrading Bash on macOS):
- Execute the following commands:
echo /opt/homebrew/bin/bash | sudo tee -a /etc/shells >/dev/null chsh -s /opt/homebrew/bin/bash sudo chsh -s /opt/homebrew/bin/bash
- Close and reopen the terminal application and verify that the version of Bash installed by Homebrew is running:
echo $SHELL
Note: on Macs with Intel chips, the Homebrew base directory is
/usr/local
instead of/opt/homebrew
(see documentation), that is, the path to the Bash binary in that case is/usr/local/bin/bash
instead of/opt/homebrew/bin/bash
.
Install custom dotfiles
curl -Lks http://bit.ly/get-my-dotfiles | bash
The weibeld/dotfiles repository hosts a set of dotfiles (~/.bashrc
, ~/.bash_profile
, etc.) with customisations for various tools. The above command downloads and installs these dotfiles. Detailed instructions can be found in this gist.
Customise iTerm2
TODO: use Git Credential Manager (GCM): https://docs.github.com/en/get-started/getting-started-with-git/caching-your-github-credentials-in-git?platform=mac
- Go to iTerm2 > Settings…> General > Preferences
- Check Load preferences from a custom folder or URL
- Enter the following URL into the text field:
https://raw.githubusercontent.com/weibeld/iterm2-settings/main/com.googlecode.iterm2.plist
- Quit iTerm2 and restart it to apply the customised settings
The weibeld/iterm2-settings repository hosts a complete customised iTerm2 configuration description.
Set Up GitHub Credentials
TODO: use Git Credential Manager (GCM): https://docs.github.com/en/get-started/getting-started-with-git/caching-your-github-credentials-in-git?platform=mac
- On GitHub, create a new personal access token
- Settings > Developer settings > Personal access tokens > Tokens (classic)
- Push a commit to any GitHub repository
- In the appearing prompt, enter your username and the personal access token created above
After this initial authentication, the git-credential-osxkeychain
helper saves the credentials in Keychain Access and automatically retrieves them whenever they are needed.
Configure Fluor
Start Fluor, click its icon in the menu bar, and set Trigger to the rightmost option (key). This allows switching mode by simply pressing the fn key.
If you have a globe (🌐) key hosted together with the fn key, make sure to disable the globe key functionality, as explained in Setting Up a New Mac: Basic Settings. Otherwise, the globe functionality may interfer with Fluor.
Set Up Google Drive to Mirror Files
- Click on Google Drive in the menu bar, then Preferences > Google Drive > Mirror files
- Create and select a folder in which to mirror the Google Drive files
- This folder will directly contain the content of Google Drive, i.e. no additional top-level folder will be created
- For example, create and select the folder
~/Desktop/Google Drive
The above settings make sure that the entire content of Google Drive is downloaded to the local machine (in the specified folder) and kept in sync with the server side of Google Drive. By default, Google Drive uses the Streaming mode where files are only downloaded on demand, e.g. when they are opened on the local machine.
Install AdBlock in Chrome
Set Chrome Download Location to Desktop
Chrome > Settings > Downloads > Location > Change
Set Up eduroam
See instructions on Zoolz (TODO: move instructions here).