Skip to content

Harden dotfiles with error handling, automation, and standard tooling#2

Draft
Copilot wants to merge 3 commits intomasterfrom
copilot/improve-code-quality
Draft

Harden dotfiles with error handling, automation, and standard tooling#2
Copilot wants to merge 3 commits intomasterfrom
copilot/improve-code-quality

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Jan 30, 2026

The dotfiles lacked resilience and automation. Configurations would fail if optional dependencies were missing, and setup required manual symlink creation.

Shell Configuration Hardening

.zshrc - Added conditional checks to prevent errors when plugins/tools aren't installed:

# Before: hard failure if not installed
source /opt/homebrew/share/zsh-autosuggestions/zsh-autosuggestions.zsh

# After: graceful degradation
if [[ -f /opt/homebrew/share/zsh-autosuggestions/zsh-autosuggestions.zsh ]]; then
  source /opt/homebrew/share/zsh-autosuggestions/zsh-autosuggestions.zsh
fi

.oshen_floor - Conditional PATH construction only adds existing directories

Git Enhancements

.gitconfig - Added aliases and defaults:

  • Common operations: st, co, ci, lg (graph log), undo, unstage
  • Sensible defaults: push.autoSetupRemote, fetch.prune, diff.colorMoved

Automation & Standards

  • install.sh - One-command setup with automatic backup, symlink creation, and dependency checking
  • .editorconfig - Consistent formatting across editors
  • .gitattributes - Normalized line endings
  • .gitignore - Comprehensive patterns (OS files, IDEs, backups)
  • README.md - Installation guide and feature documentation

All configurations use $HOME instead of hardcoded paths for portability.

Original prompt

Any improvements we could make?

Created from VS Code.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits January 30, 2026 18:53
Co-authored-by: lostintangent <116461+lostintangent@users.noreply.github.com>
…ove install script

Co-authored-by: lostintangent <116461+lostintangent@users.noreply.github.com>
Copilot AI changed the title [WIP] Suggest improvements for code quality Harden dotfiles with error handling, automation, and standard tooling Jan 30, 2026
Copilot AI requested a review from lostintangent January 30, 2026 19:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants