These are my notes for setting up a new MacBook to my preference.
Download iTerm2.
Install OhMyZsh:
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
Install Menlo for Powerline font.
Replace the default profile in settings with iTerm-theme.json.
Copy .zshrc and other dot files to home directory.
Setup handy key shortcuts in iTerm preferences:
⌘ ←
'Jump left to beginning of line' and ⌘ →
'Jump right to end of line':
Set ⌘ ← to Hex code 0x01
Set ⌘ → to Hex code 0x05
⌘ z
undo:
Hex code 0x1f
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Check everything is ok:
brew doctor
Install some brew
packages:
brew install aws/tap/aws-sam-cli git telnet yarn
Bootstrap the n
version manager:
curl -L https://raw.githubusercontent.com/tj/n/master/bin/n -o n
Then use that to install node
, npm
and a real install of n
:
bash n lts && rm n && npm install -g n
Install pnpm
:
curl -fsSL https://get.pnpm.io/install.sh | sh -
And add some global packages:
pnpm add -g git-branch-selector node-gyp
brew install pyenv
Update pip
:
python3 -m pip install --upgrade pip
curl "https://awscli.amazonaws.com/AWSCLIV2.pkg" -o "AWSCLIV2.pkg"
sudo installer -pkg AWSCLIV2.pkg -target /
brew install mysql
Start the mysql
service:
brew services start mysql
Use the setup script to set sensible defaults:
mysql_secure_installation
pip install ansible==2.9.27
brew install tfenv
tfenv install <version>
tfenv use <version>
brew install nginx
Setup configuration files at $HOMEBREW_PREFIX/etc/nginx
Yes, I know it's old and unsecure!
brew tap shivammathur/php
brew install shivammathur/php/php@7.4
brew link php@7.4
Setup php.ini at $HOMEBREW_PREFIX/etc/php/7.4/
A developer-friendly font. Download and then install the regular ttf.
A password manager. Download
A screenshot/video capture tool. Download
A clipboard history manager. Download
A system-wide colour picker. Download OR use open source alternative Pika.
A status bar system monitor. Download
An archiver that supports lots of formats. Download
A markdown note taker. Download
A contents-of-screen measurer. Download
A GraphQL and REST API client. Download
A window layout manager. Download
A MySQL client. Download and import my dark theme for the query window SequelAce-theme.spTheme.
A team chat app. Download
A Git GUI. Download
An IDE. Download and turn on Settings Sync and sign in with Github.