Skip to content

Getting Started ​

Personal macOS and Debian dotfiles with setup scripts for fast developer environment provisioning.

Prerequisites ​

ToolmacOSDebian / Ubuntu
bashbuilt-inapt install bash
gitxcode-select --installapt install git
curlbuilt-inapt install curl
makexcode-select --installapt install make
batsbrew install bats-coreapt install bats
parallel (optional)brew install parallelapt install parallel
Homebrewbrew.sh—
DockerDocker Desktopapt install docker.io

The init scripts check for required prerequisites at startup and offer to install them automatically.

Quick install ​

macOS ​

sh
bash <(curl -fsSL https://raw.githubusercontent.com/KevinDeBenedetti/dotfiles/v0.20.0/os/macos/init.sh) -a

Debian ​

sh
bash <(curl -fsSL https://raw.githubusercontent.com/KevinDeBenedetti/dotfiles/v0.20.0/os/debian/init.sh) -a

The script clones the latest release of the repository to ~/.dotfiles (or checks that release out in an existing clone), then re-executes from there so that symlinks remain valid after reboot. Set DOTFILES_REF to run another tag or branch (DOTFILES_REF=main).

Local install ​

sh
# Clone
git clone https://github.com/KevinDeBenedetti/dotfiles.git ~/.dotfiles
cd ~/.dotfiles

# Full install (all profiles + dotfiles + completions)
./os/macos/init.sh -a        # macOS
./os/debian/init.sh -a       # Debian

Flags ​

FlagDescription
-aFull install: all profiles + dotfiles + completions + cleanup
-p <profiles>Comma-separated list of profiles (e.g. base,python)
-dLink dotfiles into $HOME only
-cInstall zsh CLI completions
-lLite mode — skip optional/heavy packages
-u <user>Debian only: create a non-root sudo user (see Debian)
-hPrint help

What gets installed ​

  • Oh My Zsh with custom theme and plugins
  • proto — version manager for Node.js, Bun, and other runtimes
  • Shell config — .zshrc, aliases, environment variables
  • Git config — SSH commit signing, rebase-by-default, HTTPS auth through Git Credential Manager (see Git)
  • SSH config — host aliases and key references
  • VS Code — settings and extension list
  • Agent skills — shared AI assistant skills (see Skills), /next-task to work a project's TODO.md (see TODO Workflow) /next-issue to work its GitHub issues and /audit to file a repository audit as issues (see Issue Workflow), /commit to turn changes into Conventional Commits that close their GitHub issues, and /pr to take a branch to an up-to-date pull request, with every git step handed over as a command you run from the chat (see Git Workflow)
  • AI agent guardrails — Claude Code settings and managed policy, OpenCode permissions, Copilot guard hook (see Claude Code)

Local overrides ​

Three stub files are created automatically on first run with -d. They are gitignored and never committed:

FilePurpose
~/.zshrc.localAliases, exports, path additions — sourced last in .zshrc
~/.gitconfig.localOverride [user] email, signing key — loaded via [include]
~/.config/dotfiles/env.local.shMachine-specific env vars, no API keys — sourced after env.sh

WARNING

Do not export API keys or tokens from env.local.sh: every process started from the shell inherits them, AI agents included. See Shell.

Testing ​

Run the same checks as CI locally (run make submodules once on a fresh clone):

sh
make ci     # ShellCheck + yamllint + Bats
make test   # Bats only

Run full integration tests in Docker (Debian):

sh
make docker-test-full

See Setup — macOS and Setup — Debian for platform-specific details.