How 0xdevalias/dotfiles works
Purpose and Entry Points
This is a macOS-oriented personal dotfiles repository, organized by technology/topic rather than as an application. Its primary entry points are script/bootstrap (link managed home-directory files), script/install (run setup), and commands exposed through bin/, notably bin/dotfiles-dot. Shell startup is driven by symlinked Zsh files such as zsh/zshrc.symlink and zsh/zprofile.symlink.
Bootstrap and Home Projection
script/bootstrap is the central deployment boundary: repository files ending in .symlink are projected into $HOME with the suffix removed. This makes versioned files active user configuration while keeping machine-local/secrets outside the repository, notably via localrc.example.symlink and the expected ~/.localrc.
Paths: script/bootstrap, zsh/zshrc.symlink, git/gitconfig.symlink.
Shell Configuration Loading Model
The runtime is Zsh. Topic directories contribute shell fragments: path.zsh files establish PATH/environment ordering, general .zsh files define aliases/functions/configuration, and completion.zsh files load last. The root Zsh configuration orchestrates this modular topic-based composition.
Paths: zsh/config.zsh, system/_path.zsh, zsh/completion.zsh.
Topic Modules and Runtime Managers
Language/tool modules configure installation and shell activation for several version-management ecosystems. The repository supports both legacy and newer runtime approaches, including rbenv, pyenv, nodenv/n, goenv, jenv, and asdf. Their install scripts are independently runnable, so setup is selective rather than a single mandatory stack.
Paths: ruby/install.sh, python/pyenv.zsh, node/nodenv.zsh.
Dependency and Machine Provisioning
Homebrew is the principal package-management layer, rooted at Brewfile and supplemented by host-specific captured package lists. OS-level setup/defaults is a separate macOS-focused stage, while installer scripts handle individual tools and applications.
Paths: Brewfile, homebrew/install.sh, osx/set-defaults.sh.
Command Surface and Automation
bin/ is added to PATH and acts as the operational interface: it contains workstation maintenance, Git/GitHub workflows, Docker controls, media/document conversion, cloud utilities, and security/recon wrappers. These commands compose installed external CLIs rather than form a cohesive service runtime.
Paths: bin/dotfiles-create-bin, bin/git-up, bin/docker-init.
Managed External Tool Configuration
The repository owns configuration and startup integration for developer and desktop tools: Git and GitHub CLI, SSH/GPG, Docker, Kubernetes/minikube, Google Cloud, terminal/editor settings, and AI tooling. Sensitive credentials are intentionally excluded through local config and ignored directories.
Paths: config.symlink/gh/config.yml, ssh/ssh.symlink/config.example, codex/codex.symlink/config.toml.
Dependency Boundaries
There is no server, database, or web application. The effective system is the user’s shell and macOS environment. External dependencies include Homebrew, Antigen for Zsh bundles, Git/GitHub, Docker, GCP tooling, language version managers, and optional desktop applications. Antigen-specific bundle declarations are collected from topic .anti files.
Paths: antigen/antigen, git/git.anti, node/node.anti.
Main entry points: bootstrap Bootstrap · install Setup entry point · config.zsh Topic loader · install.sh Homebrew installer
Components 18
Deployment
- Setup entry point · Runs selected machine and tool setup.
script/install - Bootstrap · Links managed dotfiles into the home directory.
script/bootstrap - Active home config · Symlinked configuration plus machine-local settings.
- Local secrets config · Expected ~/.localrc remains outside version control.
localrc.example.symlink
Zsh runtime
- Zsh startup
zsh/zshrc.symlink - Topic loader · Composes topic fragments in startup order.
zsh/config.zsh - PATH fragments · Establish environment and PATH ordering.
system/_path.zsh - Completion loader · Loaded after general shell configuration.
zsh/completion.zsh - Antigen
antigen/antigen - Bundle declarations · Topic files declare Zsh bundles.
git/git.anti
Machine provisioning
- Brew package manifest
Brewfile - Homebrew installer
homebrew/install.sh - macOS defaults
osx/set-defaults.sh - Runtime managers · Supports rbenv, pyenv, nodenv/n, goenv, jenv, and asdf.
ruby/install.sh
Tool integrations
- Operational commands · Workstation, Git, Docker, cloud, media, and security wrappers.
bin/dotfiles-create-bin - Git configuration
git/gitconfig.symlink - Installed external CLIs · GitHub, Docker, GCP, language tools, and optional desktop apps.
- Developer tool configs · Includes GitHub CLI, SSH/GPG, and AI tool configuration.
config.symlink/gh/config.yml
Connections 21
- Setup entry point → Bootstrap: deploys config
- Setup entry point → Homebrew installer: provisions packages
- Setup entry point → macOS defaults: applies OS setup
- Setup entry point → Runtime managers: runs selectively
- Bootstrap → Active home config: creates symlinks
- Bootstrap → Zsh startup: projects
- Bootstrap → Git configuration: projects
- Bootstrap → Developer tool configs: projects
- Local secrets config → Active home config: machine-local override
- Zsh startup → Topic loader: loads
- Topic loader → PATH fragments: loads first
- Topic loader → Completion loader: loads last
- Topic loader → Antigen: initializes
- Bundle declarations → Antigen: declares bundles
- PATH fragments → Operational commands: adds bin to PATH
- Homebrew installer → Brew package manifest: installs manifest
- Homebrew installer → Installed external CLIs: installs
- Runtime managers → Installed external CLIs: activates runtimes
- Operational commands → Installed external CLIs: composes
- Developer tool configs → Installed external CLIs: configures
- Git configuration → Installed external CLIs: configures Git