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.
Let's begin.
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!
- Trackpad
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
- Accessibility
Under Pointer Control > Trackpad Options > Enable dragging (three finger drag)
- Dock
Small icons (2nd from smallest) Minimise windows into application icon Enable automatically hide and show the Dock Disable show recent applications in Dock
- Finder
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
- Menubar
Change battery to show percentage, Use 24-hour clock (Mac Monterrey only)
- Accounts
Login to Google/iCloud to sync Calendar
Install the Command Line Tools to help Homebrew to compile things
xcode-select --install
Hook up some git configs
git config --global pull.ff only
Get homebrew itself so we can run brew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install node
brew install yarn
This setup guide includes the following:
- spaceship prompt
- hyper terminal
- hypercwd
- hyperterm-close-on-left
- zsh
- zsh-syntax-highlighting
- zsh-autosuggestions
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
spaceship-prompt
npm install -g spaceship-prompt
Go to Tools > Install Hyper CLI command in PATH to install the hyper
command
If for some reason this doesn't work, make sure you have
/usr/local/bin/hyper
.
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
.hyper.js
brew install zsh
chsh -s /bin/zsh // replaces bash with zsh
Create a folder to store your zsh plugins
mkdir ~/.zshrc_plugins
Install zsh-autosuggestions
and zsh-syntax-highlighting
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-autosuggestions
do not work.cd
into the directory and see if ruby complains about anything. In my case it neededrvm install ruby-2.5.3
before it started working.
Installing nvm
We are installing nvm last to make sure we already have .zshrc
setup
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)
With the power of brew cask
brew install --cask google-chrome tower
Other good ones we might need.
- slack
- loom
- sequel-ace
- iterm