Skip to content

About

Setting up a Macbook for development

Resources

Stars

1 star

Watchers

1 watching

Forks

Repository files navigation

macOS laptop setup

Installation

Install Apple's Command Line Tools with xcode-select --install, then clone and run setup.

git clone --recurse-submodules https://github.com/coderste/laptop-setup.git
cd laptop-setup
./setup.sh

Setup installs the apps and developer tools in Brewfile. To change the package list, edit the brew and cask entries. Setup skips routine upgrades of installed packages. Homebrew Bundle documentation

The script installs Oh My Zsh and its plugins, copies .zprofile and .zshrc, and creates ~/code/personal and ~/code/work. It seeds the Git, AWS, and aliases files when they are missing. It saves replaced shell files and other existing settings under ~/.laptop-setup-backup.*. Run exec zsh -l to reload the shell settings.

In an interactive terminal, setup prompts you to sign in with GitHub CLI if needed.

iTerm2

Run setup from Terminal.app with iTerm2 quit to apply the iTerm2 settings during setup. If iTerm2 was open, quit it and run the following from Terminal.app.

./setup.sh --iterm-only

The saved settings include the Default and tmux profiles, colour presets, and key bindings. The profiles use 0xProto Nerd Font, which the Brewfile installs on a fresh Mac. Applying these settings uses the local preferences domain and disables custom-folder loading if it was enabled. iTerm2 settings documentation

Neovim

Setup clones coderste/neovim-config into ${XDG_CONFIG_HOME:-$HOME/.config}/nvim. It reuses an existing checkout from that repo, including local edits. If a different config is present, setup saves it after the new clone succeeds. Start nvim to bootstrap its plugins and language servers.

Back up settings

./backup.sh

This copies the current shell, Git, aliases, and AWS configuration into the repo and exports the tracked iTerm2 settings. Review the diff before committing, especially if you added custom profile commands or key bindings.

Optional setup

  • Run ./macos-defaults.sh to apply the keyboard, Dock, Finder, and other macOS preferences.
  • Sign into VS Code to sync settings and activate Alfred with your licence.
  • Install the licensed Dank Mono font if you use it in other apps.

Screenshots

Terminal

VS Code

Dock

About

Setting up a Macbook for development

Resources

Stars

1 star

Watchers

1 watching

Forks

Used by

Contributors

Languages