How eycjur/dotfiles works
Purpose and Entry Points
This repository provisions a portable Unix development environment (“dotfiles”) for macOS, Linux, WSL, Docker, and VS Code Dev Containers. Primary entry points are install.sh for a checked-out repository and remote-install.sh for curl-based zsh bootstrap installation.
Installation and Linking Boundary
install.sh is the central installer: it establishes the user-level configuration by connecting repository-managed dotfiles to home-directory locations. It is the main compatibility and idempotency boundary for local clones, containers, and Dev Container’s dotfiles.installCommand. remote-install.sh provides the untrusted-network bootstrap path, downloading or cloning before delegating to installation.
Paths: install.sh, remote-install.sh, readme.md.
Shell Environment Assembly
The shell configuration is modular rather than monolithic. .zshrc / .bashrc are user shell entry points; shared environment, aliases, functions, fuzzy finder setup, and editor/plugin behavior live below shell/. This permits common behavior across shells while retaining zsh- and bash-specific prompt/plugin integration.
Paths: .zshrc, .bashrc, shell/env.sh, shell/alias.sh, shell/functions.sh, shell/fzf.sh.
Platform-Specific Initialization
Platform scripts isolate OS-dependent setup and behavior for macOS, Linux, and WSL. The shell loading sequence selects the applicable platform layer rather than embedding OS branching throughout general aliases and functions.
Paths: shell/platform/mac.sh, shell/platform/linux.sh, shell/platform/wsl.sh.
Interactive Shell Experience
Prompt rendering and shell extension loading are split by shell runtime. Zsh has dedicated plugin and prompt files; Bash has its own prompt integration. Terminal-wide behavior is also configured through tmux, while .zshenv supplies earlier zsh environment initialization.
Paths: shell/zsh/plugin.zsh, shell/zsh/prompt.zsh, shell/bash/prompt.sh, .zshenv, .tmux.conf.
Editor and CLI Tool Configuration
Neovim/Vim, Yazi, and several CLI-agent tools consume checked-in native configuration files. These are declarative integration points rather than application services: their host runtimes discover config under ~/.config after installation.
Paths: .config/nvim/init.vim, .vimrc, .config/yazi/yazi.toml, .config/agentsb/config.toml, .config/uv/uv.toml.
AI Workflow Conventions
Claude and Codex configuration directories define repository-local AI assistant instructions, reusable skills, commands, and specialist agent roles. They support coding/review workflows but are separate from installation and shell runtime paths.
Paths: claude/CLAUDE.md, claude/agents/code-reviewer.md, claude/skills/review-pr/SKILL.md, codex/AGENTS.md, codex/config.toml.
External Dependencies and User-Owned State
The environment expects Unix shell tooling plus Git, Neovim/Vim, and zsh; installation examples use Homebrew on macOS and APT on Linux. Remote bootstrap depends on curl, GitHub raw content, and GitHub repository access. Personal Git identity is deliberately kept outside version control through .gitconfig.local, seeded from the tracked sample.
Paths: .gitconfig, .gitconfig.local.sample, .npmrc, .editorconfig.
Main entry points: .zshrc Shell entry points · install.sh Local installer · .bashrc Bash entry point · remote-install.sh Remote bootstrap
Components 18
Provisioning
- Remote bootstrap · Downloads or clones before local installation.
remote-install.sh - Local installer · Idempotently links managed files into the home directory.
install.sh - Installation guide
readme.md - User home config · Linked dotfiles and discovered configuration destinations.
Shell runtime
- Shell entry points
.zshrc - Bash entry point
.bashrc - Shared shell modules · Environment, aliases, functions, and fuzzy finder setup.
shell/env.sh - Platform initialization · Selects macOS, Linux, or WSL behavior.
shell/platform/mac.sh - Zsh extensions and prompt
shell/zsh/plugin.zsh - Bash prompt
shell/bash/prompt.sh - Early Zsh environment
.zshenv - Tmux configuration
.tmux.conf
Tool configuration
- Editor configuration
.config/nvim/init.vim - CLI tool configuration · Yazi and CLI-agent configuration discovered under ~/.config.
.config/yazi/yazi.toml - Git configuration boundary · Tracked Git settings seed an untracked personal identity file.
.gitconfig
AI workflow
- Claude conventions · Instructions, review skill, and specialist role definitions.
claude/CLAUDE.md - Codex conventions
codex/AGENTS.md
Other components
- System dependencies · Shell tooling, Git, zsh, Neovim/Vim, curl, and GitHub access.
Connections 20
- Installation guide → Remote bootstrap: documents
- Installation guide → Local installer: documents
- Remote bootstrap → Local installer: delegates to
- System dependencies → Remote bootstrap: enables
- System dependencies → Local installer: provides tools
- Local installer → User home config: links managed config
- User home config → Shell entry points: exposes
- User home config → Bash entry point: exposes
- Shell entry points → Early Zsh environment: initializes after
- Shell entry points → Shared shell modules: loads
- Bash entry point → Shared shell modules: loads
- Shared shell modules → Platform initialization: selects
- Shell entry points → Zsh extensions and prompt: loads
- Bash entry point → Bash prompt: loads
- User home config → Tmux configuration: exposes
- User home config → Editor configuration: installs for discovery
- User home config → CLI tool configuration: installs for discovery
- User home config → Git configuration boundary: installs tracked base
- Git configuration boundary → User home config: keeps identity local
- Claude conventions → Codex conventions: complements