Files
dotfiles/README.md
Stefan Imhoff f6d6d675d0 chore: add required setup steps for macOS development
The changes add several necessary setup steps for a complete macOS
development environment including Rosetta, GPG configuration, project
initialization, and system preferences restoration.
2025-03-14 16:34:21 +01:00

55 lines
1.1 KiB
Markdown

# Dotfiles
## Install Dependencies
First, install the Xcode command-line tools:
```sh
xcode-select --install
sudo softwareupdate --install-rosetta
sudo xcodebuild -license accept
```
## Install Homebrew
```sh
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
```
## Install Initial Software
```sh
brew install dotbot
brew install --cask proton-pass
brew install --cask secretive
```
## Setup SSH
Log into the password manager, start and configure [Secretive](https://github.com/maxgoedjen/secretive) to setup SSH keys. Add the public key to GitHub and export the `SSH_AUTH_SOCK` (temporary) to be able to clone with SSH:
```sh
export SSH_AUTH_SOCK="$HOME/Library/Containers/com.maxgoedjen.Secretive.SecretAgent/Data/socket.ssh"
```
## Setup Hostname
```sh
sudo scutil --set HostName <hostname>
```
## Clone Dotfiles
```sh
git clone git@github.com:kogakure/dotfiles.git ~/.dotfiles
```
## Setup the Mac
Log in with your Apple ID to be able to install app store apps. Run the install script to setup the computer:
```sh
cd ~/.dotfiles
./setup.sh
```