A comprehensive, automated dotfiles management system for macOS development environments. Features a powerful CLI tool for setup, maintenance, and AI-powered development insights.
This repository contains my personal development environment configuration, managed through a custom CLI tool called dot. It uses GNU Stow for symlink management, Homebrew for package installation, and includes configurations for Fish shell, Neovim, Tmux, Git, and other essential development tools.
- 🚀 One-command setup - Complete development environment in minutes
- 🤖 AI Integration - Claude Code for commit summaries and assistance
- 📦 Resilient Package Management - Continues installation even if packages fail
- đź’ľ Compressed Backups - Create and restore configuration snapshots
- 🔍 Health Monitoring - Comprehensive environment diagnostics
- 🛠️ Modular Design - Separate work and personal configurations
# Clone the repository
git clone https://github.com/dmmulroy/.dotfiles.git ~/.dotfiles
cd ~/.dotfiles
# Full setup (installs everything)
./dot init
# Or customize the installation
./dot init --skip-ssh --skip-fontAfter installation, the dot command will be available globally for ongoing management. Running dot without arguments shows help.
~/.dotfiles/
├── dot # Main CLI tool
├── home/ # Configuration files (stowed to ~)
│ ├── .config/
│ │ ├── fish/ # Fish shell configuration
│ │ ├── git/ # Git configuration
│ │ ├── nvim/ # Neovim configuration
│ │ ├── tmux/ # Tmux configuration
│ │ └── ...
│ └── .ideavimrc # IntelliJ IDEA Vim config
├── packages/
│ ├── bundle # Base Brewfile
│ └── bundle.work # Work-specific packages
├── backups/ # Configuration backups (compressed)
├── CLAUDE.md # Instructions for Claude Code
└── README.md # This file
The dot command is a comprehensive management tool for your dotfiles. It handles everything from initial setup to ongoing maintenance and provides AI-powered insights.
Complete environment setup with all tools and configurations.
# Full installation
dot init
# Skip SSH key generation
dot init --skip-ssh
# Skip font installation
dot init --skip-font
# Skip both SSH and font setup
dot init --skip-ssh --skip-fontWhat it does:
- Installs Homebrew (if not present)
- Installs packages from Brewfiles
- Creates symlinks with GNU Stow
- Installs Bun runtime
- Installs Claude Code CLI via Bun/npm
- Generates SSH key for GitHub (optional)
- Installs MonoLisa font (optional)
- Sets up Fish shell with plugins
dot update- Pulls latest dotfiles changes
- Updates Homebrew packages
- Re-stows configuration files
dot doctorComprehensive diagnostics including:
- âś… Homebrew installation
- âś… Essential tools (git, nvim, tmux, node, etc.)
- âś… Claude Code installation method and functionality
- âś… Fish shell configuration
- âś… PATH configuration
⚠️ Broken symlinks detection⚠️ Missing dependencies
dot check-packagesShows which packages are installed vs. missing from your Brewfiles.
dot retry-failedAttempts to reinstall packages that failed during initial setup.
Uses Claude Code to generate intelligent summaries of recent git commits.
# Summarize last 3 commits (default)
dot summary
# Summarize specific number of commits
dot summary -n 5
# Include file diffs for detailed analysis
dot summary -d
# Verbose mode with commit details
dot summary -v
# Combine options
dot summary -n 10 -d -vExample Output:
=> Summary of Recent Changes
Development Focus: Recent work centers on improving the diagnostic navigation
system in Neovim, updating deprecated API calls to use modern vim.diagnostic.jump()
functions. This includes better error handling and user experience improvements.
Technical Patterns: The commits show incremental configuration refinements
with a focus on tooling updates and environment optimization...
The dot backup command provides comprehensive backup management with subcommands for all backup operations.
# Create timestamped backup (default)
dot backup
# Create named backup
dot backup create pre-experiment
# Shorthand for named backup
dot backup pre-experiment
# All backups are automatically compressed (tar.gz)# List available backups
dot backup restore
# Restore specific backup
dot backup restore pre-experiment# List all backups with details
dot backup list
# Remove backups older than 30 days
dot backup clean
# Compress legacy uncompressed backups
dot backup compress
# Delete specific backup
dot backup delete old-backup
# Show backup help
dot backup help# Run 10 benchmarks (default)
dot benchmark-shell
# Run specific number of benchmarks
dot benchmark-shell -r 20
# Show verbose output with individual timings
dot benchmark-shell -v
# Combine options
dot benchmark-shell -r 15 -vMeasures Fish shell startup performance with detailed analysis:
- High-precision timing via Python3 or Perl
- Performance assessment with color-coded results (excellent ≤50ms, good ≤100ms, fair ≤200ms)
- Optimization tips for slow performance
- Statistical analysis including average, min, max, and range
- Profiling guidance for detailed bottleneck identification
Example Output:
=> Fish Shell Startup Benchmark Results
Configuration:
Shell: fish, version 4.0.2
Runs: 10
Test: Empty script execution
Performance Results:
Average time: 0.061 seconds
Fastest time: 0.048 seconds
Slowest time: 0.078 seconds
Time range: 0.030 seconds
Performance Assessment:
✓ Good startup performance (≤100ms)
dot completionsGenerates comprehensive Fish shell completions for the dot command, including:
- All commands and subcommands
- Dynamic completions for installed packages
- Dynamic completions for available backups
- Option completions with descriptions
dot editOpens the dotfiles directory in your default editor (defined by $EDITOR).
# Create/update symlinks for configuration files
dot stowRe-creates symlinks from home/ directory to your home directory (~). Use this after editing configuration files.
# Install dot command globally (add to PATH)
dot link
# Remove global installation
dot unlinkMakes the dot command available from any directory by creating a symlink in /usr/local/bin or ~/.local/bin.
The system provides comprehensive package management through the dot package command and uses two Brewfiles for different contexts:
# List packages
dot package list # List all packages
dot package list base # List base packages only
dot package list work # List work packages only
# Add packages
dot package add git # Add git formula to base bundle
dot package add docker cask # Add docker cask to base bundle
dot package add kubectl brew work # Add kubectl to work bundle
# Update packages
dot package update # Update all installed packages
dot package update git # Update specific package
dot package update all base # Update only base bundle packages
dot package update all work # Update only work bundle packages
# Remove packages
dot package remove git # Remove git from any bundle
dot package remove docker base # Remove docker from base bundle onlypackages/bundle - Base packages for all machines:
- Development tools: neovim, tmux, fish, git
- CLI utilities: ripgrep, fd, fzf, starship
- Applications: Arc browser, Raycast, OrbStack
- AI tools: aider
packages/bundle.work - Work-specific additions:
- AWS/Kubernetes tools
- Enterprise development tools
- Auto-detection: Package type (brew vs cask) automatically detected
- Sorted maintenance: Packages kept alphabetically sorted within each type
- Installation integration: Adding packages installs them immediately
- Update flexibility: Can update all packages, specific packages, or by bundle
- Cleanup included: Update command includes Homebrew refresh and optional cleanup
- Fish Shell: Custom functions, environment variables, and plugin management via Fisher
- Neovim: Lua-based configuration with lazy.nvim plugin manager
- Tmux: Plugin management via TPM, session persistence, Vim-style navigation
- Git: Conditional work configuration, custom aliases, GPG signing
- GNU Stow: Manages symlinks from
home/to~ - Modular Design: Separate configs for different tools
- Conditional Loading: Work-specific Git config for
~/Code/work/ - Plugin Managers: Each tool uses its own (lazy.nvim, TPM, Fisher)
- Error Resilience: Package installation continues despite individual failures
- macOS (Intel or Apple Silicon)
- Internet connection
- Terminal access
-
Clone repository:
git clone https://github.com/dmmulroy/.dotfiles.git ~/.dotfiles cd ~/.dotfiles
-
Run installation:
./dot init
-
Restart shell or source Fish config:
# In Fish shell source ~/.config/fish/config.fish # Or restart terminal
-
Verify installation:
dot doctor
Method 1: Using package commands (recommended):
# Add package using the package command
dot package add new-tool # Adds to base bundle
dot package add new-app cask # Adds cask to base bundle
dot package add work-tool brew work # Adds to work bundleMethod 2: Manual editing:
Edit packages/bundle or packages/bundle.work:
# Add to packages/bundle
brew "new-tool"
cask "new-app"Then run:
dot init # or brew bundle --file=./packages/bundle- Edit files in
home/directory (not your actual home directory) - Re-stow changes:
dot stow(ordot initfor full setup) - Test configuration changes
The system automatically applies work-specific Git configuration for repositories under ~/Code/work/.
Command not found: dot
# Source Fish configuration
source ~/.config/fish/config.fish
# Or add to PATH manually
export PATH="$HOME/.dotfiles:$PATH"Package installation failures:
# Check what failed
dot check-packages
# Retry failed packages
dot retry-failedBroken symlinks:
# Diagnose issues
dot doctor
# Re-create symlinks
dot stowClaude Code authentication:
# If summary command fails
claude auth loginClaude Code installation issues:
# Reinstall via Bun (recommended)
bun install -g @anthropic-ai/claude-code
# Or via npm
npm install -g @anthropic-ai/claude-code- Run
dot helpfor command overview - Run
dot <command> --helpfor specific command help - Check
dot doctorfor environment issues - Review logs in failed package files:
packages/failed_packages_*.txt
- Fork the repository
- Create a feature branch
- Make changes in the
home/directory structure - Test with
dot doctoranddot check-packages - Submit a pull request
# Create backup before testing
dot backup create test-changes
# Make modifications
# ...
# Test changes
dot doctor
# If issues occur, restore backup
dot backup restore test-changes# Install only base packages, skip optional components
dot init --skip-ssh --skip-font
# Check what's missing
dot check-packages
# Install work packages later
brew bundle --file=./packages/bundle.work# Before major changes
dot backup create stable-config
# Before experiments
dot backup create pre-nvim-changes
# Clean up old backups
dot backup clean# Generate Fish shell completions
dot completions
# Completions include dynamic suggestions for:
# - Package names when using package remove/update
# - Backup names when using backup restore/delete
# - All commands, subcommands, and options# Review recent work
dot summary -v
# Detailed analysis for release notes
dot summary -n 10 -d
# Quick daily standup summary
dot summary -n 5This repository is for personal use. Feel free to fork and adapt for your own needs.
- GNU Stow for symlink management
- Homebrew for package management
- Claude Code for AI assistance
- The dotfiles community for inspiration and best practices