So we got a new machine, presumably a Macbook. If not, get out of here because we're probably gonna be wasting our time going through this.
Inspired by sourabhbajaj.com, here are some preferences we should start with.
- Users & Groups
Update your Apple ID, add a profile picture and most importantly a password!
Point & Click - Enable Tap to click with one finger Scroll & Zoom - Disable scroll direction: Natural More Gestures - Turn on everything and change three fingers to four fingers
Under Pointer Control > Trackpad Options > Enable dragging (three finger drag)
Small icons (2nd from smallest) Minimise windows into application icon Enable automatically hide and show the Dock Disable show recent applications in Dock
Show home directory by default under Preferences Add Home and Code directory to Sidebar Under View - Enable path bar, tab bar and status bar Customize Toolbar - Add new folder option to toolbar
Change battery to show percentage, Use 24-hour clock (Mac Monterrey only)
Login to Google/iCloud to sync Calendar
Install the Command Line Tools to help Homebrew to compile things
Hook up some git configs
git config --global pull.ff only
Get homebrew itself so we can run
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install node brew install yarn
Setting up Hyper.js to get rid of Terminal
This setup guide includes the following:
- spaceship prompt
- hyper terminal
Downloading hyper.js itself
brew install --cask hyper visual-studio-code
There isn't any special setup with VS Code here so just perform a Settings Sync and continue
npm install -g spaceship-prompt
Go to Tools > Install Hyper CLI command in PATH to install the
If for some reason this doesn't work, make sure you have
mkdir -p -m 775 /usr/local/bin // do this if the folder doesn't exist ln -s /Applications/Hyper.app/Contents/Resources/bin/hyper /usr/local/bin/hyper
Add the content from
.hyper.js to your local one and perform a Full Reload (View > Full Reload)
Add Fira Code fonts before updating our
Setting up zsh with autosuggestions and syntax highlighting
brew install zsh chsh -s /bin/zsh // replaces bash with zsh
Create a folder to store your zsh plugins
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.zshrc_plugins/zsh-syntax-highlighting git clone https://github.com/zsh-users/zsh-autosuggestions ~/.zshrc_plugins/zsh-autosuggestions git clone https://github.com/zsh-users/zsh-autocomplete ~/.zshrc_plugins/zsh-autocomplete
Add the content from
.zshrc to your local one
If for some reason,
zsh-autosuggestionsdo not work.
cdinto the directory and see if ruby complains about anything. In my case it needed
rvm install ruby-2.5.3before it started working.
We are installing nvm last to make sure we already have
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
Best to check the latest version before running this command. (Updated on 10.03.2022)
Installing commonly use programs
With the power of
brew install --cask google-chrome tower
Other good ones we might need.