Skip to content
Go back

📝 New MacBook Pro Setup Notes

Published:  at  16:00

Why?

The MBP I had (2020 13″ 32G 512G) was just unbearably laggy. How bad was it? — there was a 2–3s delay between keyboard input and the editor showing the output!

My first Mac (MBP 2015 13″ 8G + 128G) was used for development and security research (Web vulnerabilities) for nearly 5 years, and I basically never felt any lag.

What?

After reading most of the reviews, I finally chose the MBP 14″ 10-core + 16G + 512G among the M2, M1, and M1 Pro. For me (a second-tier programmer), it offers the best value for money. I had suffered from poor compile/build performance before, so I chose to add 2 more CPU cores, bringing it to 10 cores. Then I borrowed an education-discount account and placed the order. Overall, it was basically like getting a free pair of AirPods 3.

Next are some setup steps. I don’t plan to use Time Machine for a direct migration; I want to install a clean system!

If you have any good App / developer tool recommendations, feel free to comment~


How?

You can use mackup for one-click syncing.

Apps

System Configuration

Dev

Plugins

Common Issues

If npm install shows spawn Unknown system error, run:

$ softwareupdate --install-rosetta

Unable to type continuously:

$ defaults write -g ApplePressAndHoldEnabled -boolean false

VSCode cannot use cmd + 2~9 to switch Tabs

// keybindings.json
{
    "key": "cmd+1",
    "command": "workbench.action.openEditorAtIndex1"
  },
  {
    "key": "cmd+2",
    "command": "workbench.action.openEditorAtIndex2"
  },
  {
    "key": "cmd+3",
    "command": "workbench.action.openEditorAtIndex3"
  },
  {
    "key": "cmd+4",
    "command": "workbench.action.openEditorAtIndex4"
  },
  {
    "key": "cmd+5",
    "command": "workbench.action.openEditorAtIndex5"
  },
  {
    "key": "cmd+6",
    "command": "workbench.action.openEditorAtIndex6"
  },
  {
    "key": "cmd+7",
    "command": "workbench.action.openEditorAtIndex7"
  },
  {
    "key": "cmd+8",
    "command": "workbench.action.openEditorAtIndex8"
  },
  {
    "key": "cmd+9",
    "command": "workbench.action.openEditorAtIndex9"
  }
}

Pressing the spacebar twice produces a .

Pasting long text in ZSH is very slow: add this line to ~/.zshrc:

zstyle ':bracketed-paste-magic' active-widgets '.self-*'

The new machine has just arrived, and I’ll keep improving the setup process. So far, I haven’t encountered any lag, and I’ll continue tracking the latest configuration over the long term!


Share this post on:

Previous Post
Using ChatGPT to Customize a Team-Specific ESLint Ruleset
Next Post
Optimizing zsh Cold-Start Performance (Oh My Zsh)