Personal configuration files for macOS with a focus on modularity and AI/agent workflows.
- 🔧 Modular zsh configuration
- 🤖 AI and agent workflow organization
- 📦 Homebrew package management
- 🔗 Symlink-based installation
- 🎨 Clean, organized structure
# Clone the repository
git clone https://github.com/yourusername/dotfiles.git ~/code/dotfiles
cd ~/code/dotfiles
# Run the installation script
./scripts/bin/dotfiles-install
# Restart your terminal or source the config
source ~/.zshrc.
├── .zshrc # Main zsh config (sources modular files)
├── zsh/ # Modular zsh configuration
│ ├── path.zsh # PATH configuration
│ ├── aliases.zsh # Common aliases
│ ├── editor.zsh # Editor settings
│ ├── shell.zsh # Shell behavior
│ └── ai.zsh # AI workflow configuration
├── ai/ # AI and agent workflows
│ ├── README.md # AI workflow documentation
│ ├── agents/ # Agent configurations
│ ├── prompts/ # Reusable prompts
│ └── scripts/ # AI automation scripts
├── git/ # Git configuration
│ └── .gitconfig
├── brew/ # Homebrew package management
│ └── .Brewfile # Homebrew dependencies
└── scripts/ # Utility scripts
└── bin/
└── dotfiles-install # Installation script
-
Shell Configuration: Add new
.zshfiles to thezsh/directoryecho '# My custom config' > zsh/custom.zsh # It will be automatically loaded on next shell start
-
AI Workflows: Add your AI agent configs to
ai/mkdir -p ai/agents echo 'Your agent config' > ai/agents/my-agent.md
-
Scripts: Add executable scripts to
scripts/bin/echo '#!/bin/bash\necho "Hello"' > scripts/bin/hello chmod +x scripts/bin/hello
-
Local Overrides: Use
~/.zshrc.localfor machine-specific settings# In ~/.zshrc.local (not version controlled) export MY_SECRET_KEY="..." alias work='cd ~/work'
# Install all packages from Brewfile
brew bundle --file=~/.dotfiles/brew/.Brewfile
# Add packages to Brewfile
brew bundle dump --file=~/.dotfiles/brew/.Brewfile --forceWhen you start a new shell, .zshrc automatically loads:
zsh/path.zsh- PATH configuration (first, so tools are available)zsh/editor.zsh- Editor settingszsh/shell.zsh- Shell behavior and keybindingszsh/aliases.zsh- Common aliaseszsh/ai.zsh- AI workflow configuration- Any other
*.zshfiles inzsh/directory miseactivation (if installed)~/.zshrc.local(local overrides, not version controlled)
If you had previous dotfiles:
- The install script backs up existing files to
~/.dotfiles-backup-<timestamp>/ - Review backed up files and migrate settings as needed
- Add machine-specific settings to
~/.zshrc.local
The ai/ directory is designed to organize:
- Agent Configurations: Reusable agent definitions
- Prompt Templates: Common prompts for code review, documentation, etc.
- Workflow Scripts: Automation for AI-assisted tasks
- Tool Configurations: Settings for Claude Code, Cursor, etc.
Example workflow:
# Keep your agent prompts organized
ai/agents/code-reviewer.md
ai/agents/documentation-writer.md
ai/prompts/commit-message-template.md
ai/scripts/ai-commit # Script to generate commit messagesStructure inspired by kylekthompson/dotfiles
MIT License - See LICENSE file for details