From c3d9da0f37ea3c91b4f8ad229eef60a657de3dbe Mon Sep 17 00:00:00 2001 From: Eric Turner Date: Sat, 2 Aug 2025 16:52:47 -0600 Subject: [PATCH] Add comprehensive .gitignore for dotfiles repository MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Protect sensitive information (SSH keys, API tokens, credentials) - Exclude machine-specific files (logs, profiles, backups) - Filter system artifacts (OS files, editor temps, package caches) - Maintain clean repository while preserving templates and docs 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- .gitignore | 261 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 261 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c90616c --- /dev/null +++ b/.gitignore @@ -0,0 +1,261 @@ +# Dotfiles Repository .gitignore + +# ======================================== +# Sensitive Information +# ======================================== + +# SSH keys and certificates +*.pem +*.key +*.crt +*.p12 +*.pfx +id_rsa* +id_ed25519* +known_hosts* + +# API keys and tokens +.env +.env.* +*.token +*.api_key +auth.json +credentials.* + +# Personal configuration overrides +local.conf +personal.conf +.personal/ + +# ======================================== +# Machine-Specific Files +# ======================================== + +# Current machine profile (generated) +.machine_profile +.current_profile + +# Installation/sync logs +*.log +.package.log +.profile.log +.sync.log +.install.log + +# Backup directories (created during installation) +*_backup_*/ +backups/ +.backup/ + +# Cache and temporary files +.cache/ +.tmp/ +*.tmp +*.temp +.DS_Store +Thumbs.db + +# ======================================== +# System-Specific Files +# ======================================== + +# macOS +.DS_Store +.AppleDouble +.LSOverride +._* + +# Windows +Thumbs.db +ehthumbs.db +Desktop.ini +$RECYCLE.BIN/ + +# Linux +.directory +.Trash-*/ + +# ======================================== +# Editor and IDE Files +# ======================================== + +# Vim +*.swp +*.swo +*~ +.netrwhist + +# VS Code +.vscode/ +*.code-workspace + +# Sublime Text +*.sublime-project +*.sublime-workspace + +# JetBrains IDEs +.idea/ +*.iml + +# Emacs +*~ +\#*\# +/.emacs.desktop +/.emacs.desktop.lock +*.elc +auto-save-list +tramp +.\#* + +# ======================================== +# Package Manager Files +# ======================================== + +# Node.js +node_modules/ +npm-debug.log* +yarn-debug.log* +yarn-error.log* +.npm +.yarn/ + +# Python +__pycache__/ +*.py[cod] +*$py.class +.Python +pip-log.txt +pip-delete-this-directory.txt + +# Ruby +.bundle/ +vendor/bundle/ +*.gem + +# ======================================== +# Runtime and State Files +# ======================================== + +# Process IDs +*.pid + +# Lock files +*.lock +.lock + +# Session files +.session +*.session + +# History files (may contain sensitive commands) +*_history +.bash_history +.zsh_history +.python_history +.mysql_history +.psql_history + +# ======================================== +# Application-Specific +# ======================================== + +# Git (if nested repos exist) +.git/ +*.orig + +# Docker +.dockerignore +docker-compose.override.yml + +# Terraform +*.tfstate +*.tfstate.* +.terraform/ +terraform.tfvars + +# AWS +.aws/credentials +.aws/config + +# GPG +*.gpg +*.asc +.gnupg/ + +# ======================================== +# Custom Dotfiles Ignores +# ======================================== + +# User customizations that shouldn't be shared +custom/ +local/ +private/ + +# Machine-specific package lists +packages.local.yaml +profiles.local.yaml + +# Test files +test_* +*_test +*.test + +# Experimental configurations +experimental/ +draft/ +wip/ + +# Documentation builds +_build/ +_site/ +.jekyll-cache/ + +# ======================================== +# Archive and Compressed Files +# ======================================== + +*.7z +*.dmg +*.gz +*.iso +*.jar +*.rar +*.tar +*.zip +*.bz2 +*.xz + +# ======================================== +# Ignore patterns for specific tools +# ======================================== + +# Oh My Zsh custom plugins/themes (if not maintained here) +zsh/oh-my-zsh/custom/* +!zsh/oh-my-zsh/custom/.gitkeep + +# Vim plugins managed by package managers +vim/bundle/ +vim/pack/ +vim/.netrwhist + +# Homebrew +Brewfile.lock.json + +# ======================================== +# Allow these files (override above patterns) +# ======================================== + +# Allow example/template files +!*.example +!*.template +!*.sample + +# Allow documentation +!README.* +!CHANGELOG.* +!LICENSE* +!CONTRIBUTING.* + +# Allow configuration templates +!config.template.* +!.gitconfig.template \ No newline at end of file