Some of my personal dotfiles
It contains the installation of some basic tools, some handy aliases and functions.
curl -fsSL https://raw.githubusercontent.com/CaddyDZ/dotfiles/master/install.sh | bashWill prompt you for the sudo password, so inspect the script before you run
- Install Apple's Command Line Tools if not already installed, which are pre-requisites for Git and Homebrew.
- Supress "last login" message on new terminal sessions.
- Clone this repository to a new
~/Code/dotfilesdirectory and symlink dotfiles to your home directory.
Decisions the bootstrap is built on. Each one names the module that implements it.
- Nothing secret is in this repo. The private SSH keys (
id_ed25519for GitHub auth and commit signing, plus the per-host keys) and~/.ssh/config.local, which names private hosts, live in Bitwarden and are restored with thebwCLI (bitwarden-cliformula). One interactivebw loginorbw unlockis the only prompt;BW_SESSIONexists only in the bootstrap process. (install/80-secrets.sh) - Commit signing uses SSH (
gpg.format = ssh,user.signingkey = ~/.ssh/id_ed25519.pub), so no GPG key,gnupgorpinentryis installed, ever. - Why Bitwarden: a single brew formula with no Apple ID or iCloud sync dependency, so it works the same in a fresh VM. Decided 2026-10-17.
bootstrap.shruns as the normal admin user and refuses to run as root. Homebrew's installer aborts as root, and oh-my-zsh, the symlinks anddefaultsmust run as the user or they land in root's home.- It asks for the sudo password once up front (
sudo -v) and keeps the ticket alive in a background loop for the length of the run, because macOS forgets it after 5 minutes. Root-only steps (/etc/paths,/etc/pam.d/sudo_local,pmset,scutil) are each wrapped insudo. Homebrew's installer finds the cached ticket by itself. (install/00-preflight.sh) - No
NOPASSWD, permanent or temporary. The oldetc/sudoerswithcaddy ALL=(ALL) NOPASSWD:ALLis gone. Touch ID for sudo via/etc/pam.d/sudo_localgives the same speed without a passwordless root on every new Mac. (install/60-macos.sh) /etc/sudoersis never overwritten. If a sudoers rule is ever needed, it goes in/etc/sudoers.d/aftervisudo -cfvalidation. Today nothing needs one.- On CI (
--ci) the runner user already has passwordless sudo, so the same script works unchanged. Decided 2026-10-21.
