Sheldon Led

A macbook, a coffee mug, a notepad, and a phone, on a wooden table
Photo by Andrew Neel on Unsplash

Setting up a new laptop

Published: . Updated:

The first few times I setup a new laptop were an explore adventure. I'd go clicking buttons, searching what I wanted to do, and spend a full day or sometimes more on getting up and running. Over time I realized I needed a system, so I automated part of it and the rest I kept in a sort of runbook in my private notes. Now I'm making it public.

Most of these are MacOS specific but some are generic and can be used for linux as well. I don't use Windows for a long time and pretend to keep it that way for the time being. For Windows users, you might wanna checkout how I setup my VSCode, those should be OS agnostic.

[Apps] Password Manager

Install password management tool (1Password or the one in use at the time) to facilitate logins.

[Apps] Git

Open terminal

  • If you type git command, the error message will indicate how to install it
  • If the terminal says /bin/false: No such file or directory
    • Go to System Preferences → Users & Groups → Advanced Options (auxiliary click on user name)
    • Change "Login shell" to /bin/zsh or /bin/bash

[Settings] Dotfiles

Dotfiles is an automation tool where I backup, restore, and sync my preferences and settings. I have a blogpost on dotfiles and how to automate your laptop setup, if you want to know more about it.

  • Clone my dotfiles:
  • Clone sub dotfiles if there's any
  • Install them
  • Execute brew analytics off
  • Restart
  • Open iTerm now 😎
  • Change fonts: iTerm2 > Preferences > Profiles tab > Font section: change to Victor Mono
  • Save settings: iTerm2 > Preferences > General tab > Preferences mark Load preferences from a custom folder /Users/sheldonled/.dotfiles/lib/macos
  • Do post-install steps for the theme here
  • Change fonts on as well, if wanted: Terminal > Preferences > Profiles tab > Text section
  • Configure other apps installed by brew, like Chrome, Firefox, Rectangle, Spotify, Slack, etc.

Double-check some settings

[Settings] Keyboard

  1. Go to Settings → Keyboard → Input Sources and add U.S. international and remove the default one. Deselect Show Input menu in menu bar
  2. Set up bluetooth keyboard, if you have one
  3. Set up "Key Repeat" to very fast and "Delay Until Repeat" to very short

[Settings] Auth keys

If you don't have a ~/.ssh/ generate one:

ssh-keygen -t rsa -b 2048

[Settings] Finder

  • Add home folder to favorites
  • Create a ~/projects folder and add to favorites

[Apps] Nvm

I install it manually so I can always check what's the latest version

[Apps] Gimp

Very good tool to edit pictures. I download it directly from Gimp's website.

Setup VSCode themes and plugins

This deserves a different post :)