Dotfiles and an install/update script:
export LAPTOP="$HOME/laptop"
git clone https://github.com/justinkuntz/laptop.git $LAPTOP
cd $LAPTOP
./laptop.sh
The following items are not part of the script. They generally are more "one time setup" items.
Configure "System Preferences > Keyboard":
- Set "Key Repeat" to "Fast".
- Set "Delay Until Repeat" to "Short".
- Set "Modifier Keys > Caps Lock Key" to "^ Control".
Install macOS apps:
ssh-keygen -t ed25519 -f ~/.ssh/id_ed25519 -C "$(whoami)@$(hostname)"
eval "$(ssh-agent -s)"
ssh-add --apple-use-keychain ~/.ssh/id_ed25519
cat ~/.ssh/id_ed25519.pub | pbcopy
A macOS feature that scans new binaries for malware adds an extra ~2s on to every build of Go programs, disturbing its fast iteration cycle. Disable it by running:
sudo spctl developer-mode enable-terminal
Then, select terminal program (e.g. kitty.app) at Preferences > Security & Privacy > Privacy > Developer Tools.