Apple MacOS setup

Clean install

Installed apps

From the Appstore:

From their own website:

System Preferences

Home & End keys

Fix home & end keys to go to the beginning and end of a line:

mkdir ~/Library/KeyBindings

vi ~/Library/KeyBindings/DefaultKeyBinding.dict

{
  "\UF729"  = "moveToBeginningOfLine:"; // home
  "\UF72B"  = "moveToEndOfLine:"; // end
  "$\UF729" = "moveToBeginningOfLineAndModifySelection:"; // shift-home
  "$\UF72B" = "moveToEndOfLineAndModifySelection:"; // shift-end
  "^\UF729" = "moveToBeginningOfDocument:"; /* Ctrl + Home */
  "^\UF72B" = "moveToEndOfDocument:"; /* Ctrl + End */
  "$^\UF729" = "moveToBeginningOfDocumentAndModifySelection:"; /* Shift + Ctrl + Home */
  "$^\UF72B" = "moveToEndOfDocumentAndModifySelection:"; /* Shift + Ctrl + End */
}

vi ~/.zshrc

bindkey "\033[1~" beginning-of-line
bindkey "\033[4~" end-of-line

In iTerm2 > Preferences > Profiles > Keys

Terminal setup

Set correct hostname:

scutil --set HostName "<my computer name>"

Install Brew:

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

Setup xcode (already done by Brew):

xcode-select --install

Download and install powerline font

git clone https://github.com/powerline/fonts.git
cd fonts
./install.sh

Install docker:

brew install colima
ARCH=arm64
VERSION=$(curl https://api.github.com/repos/docker/buildx/releases/latest -s | jq .name -r)
curl -LO https://github.com/docker/buildx/releases/download/${VERSION}/buildx-${VERSION}.darwin-${ARCH}
mkdir -p ~/.docker/cli-plugins
mv buildx-${VERSION}.darwin-${ARCH} ~/.docker/cli-plugins/docker-buildx
chmod +x ~/.docker/cli-plugins/docker-buildx
docker buildx version # verify installation