Pavan Jadhaw
Blog

Setup macos for development

Getting started

Make sure your system is up to date.

Shell

Lets start by configuring zsh. I like to use antigen for plugin management for zsh.

Install Antigen from main repository with the latest stable version available:

mkdir ~/.zsh
curl -L git.io/antigen > ~/.zsh/antigen.zsh
# or use git.io/antigen-nightly for the latest version

Create ~/.zshrc file in home directory with following content.

# Load Antigen
source ~/.zsh/antigen.zsh
antigen init ~/.zsh/antigenrc

and ~/.zsh/antigenrc file with following content.

# Load the oh-my-zsh's library.
antigen use oh-my-zsh
# antigen plugins
antigen bundles <<EOBUNDLES
git
zsh-users/zsh-completions
zsh-users/zsh-syntax-highlighting
zsh-users/zsh-autosuggestions
zsh-users/zsh-history-substring-search
hlissner/zsh-autopair
agkozak/zsh-z
EOBUNDLES
# Load the theme.
antigen theme refined
antigen apply

Restart the terminal and we are good to go.

Homebrew

Homebrew installs the stuff you need that Apple (or your Linux system) didn’t. Homebrew installs packages to their own directory and then symlinks their files into /usr/local.

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Installing apps

AppDescription
Visual Studio CodeText Editor
Google ChromeWeb Browser
FirefoxWeb Browser
RectangleWindow Manager
iterm2Terminal App
DockerDevelopment
VLCMedia
SpotifyMedia
InsomniaAPI Testing
brew install --cask \
visual-studio-code \
google-chrome \
firefox \
rectangle \
iterm2 \
docker \
vlc \
spotify \
insomnia

Node

We will be using volta for managing our javascript toolchain.

You can install Volta with a single command:

curl https://get.volta.sh | bash

Install node and yarn.

volta install node
volta install yarn

Install specific version of node

volta install node@14

Installing package binaries

yarn global add vuepress

Settings

General
Dock and menubar
Trackpad
Keyboard

To enable key-repeating in Vscode vim execute the following in your Terminal and restart VS Code:

defaults write com.microsoft.VSCode ApplePressAndHoldEnabled -bool false # For VS Code
defaults write com.microsoft.VSCodeInsiders ApplePressAndHoldEnabled -bool false # For VS Code Insider
defaults write com.visualstudio.code.oss ApplePressAndHoldEnabled -bool false # For VS Codium
defaults delete -g ApplePressAndHoldEnabled # If necessary, reset global default

Application Specific Settings

Vscode

Press CMD + SHIFT + P and click "Install code command in PATH". So we can open projects in vscode from commandline.

gist of my vscode settings

Chrome