Personal macOS setup: zsh config, Git config, and a Homebrew bundle.
Clone the repo:
git clone https://github.com/terdelyi/dotfiles.git ~/.dotfilesThen run the installer:
. ~/.dotfiles/install.sh [personal|work]The profile is asked for if omitted and remembered in ~/.dotfiles.profile.
Safe to re-run — every step is idempotent.
Name, email and signing keys live in ~/.gitconfig.local, untracked and
included from git/.gitconfig:
[user]
name = Your Name
email = you@example.com
signingkey = ssh-ed25519 AAAA... # public half, used by 1Password
gpgsigningkey = 0123456789ABCDEF # read by set_gpg_signing_keyThe installer prompts for name and email. Leave them blank and git refuses to commit until you fill them in.
~/.ssh/allowed_signers is written from these values, which
git log --show-signature needs in order to verify.
A second identity is an includeIf in the same file:
[includeIf "gitdir:~/Code/work/"]
path = ~/.gitconfig.work| Function | What it does |
|---|---|
set_gpg_signing_key [key-id] [email] |
Sets up OpenPGP commit signing for the current repo. Defaults to user.gpgsigningkey from ~/.gitconfig.local, sets user.email only if given. |
set_ssh_signing_key [public-key] [email] |
Same, for SSH signing, defaulting to user.signingkey. |
get_gpg_key_id <email> |
Prints the GPG key IDs matching an email, as a JSON array. |
sync_valet_hosts |
Mirrors every linked Valet site into /etc/hosts. Valet resolves *.test over DNS, so a connected VPN takes it over and every local site stops resolving. Requires sudo. |
valet |
Wraps the real valet: adds valet sync-hosts, and re-syncs after a successful link or unlink. |
mysql |
Runs the newest MySQL client installed by DBngin. |