Draft
Conversation
- Add deploy.sh script with symlink creation and backup functionality - Add uninstall.sh script to remove symlinks and restore backups - Update README.md with installation and usage instructions - Support for dry-run mode in both scripts - Automatic backup of existing files before creating symlinks Co-authored-by: kirillbobyrev <[email protected]>
- Add error handling for symlink creation in deploy.sh - Add error handling for symlink removal in uninstall.sh - Fix quoting issue in backup pattern variable - Suppress stderr for cleaner output on expected failures Co-authored-by: kirillbobyrev <[email protected]>
- Separate variable declarations from assignments (SC2155) - Replace ls with find for better handling of filenames (SC2012) - Remove unused backup_pattern variable - All shellcheck warnings resolved Co-authored-by: kirillbobyrev <[email protected]>
- Use stat command detection to choose GNU or BSD variant - Support both GNU stat (Linux) and BSD stat (macOS) - Ensures backup restoration works on all platforms - Maintains shellcheck compliance Co-authored-by: kirillbobyrev <[email protected]>
Copilot
AI
changed the title
[WIP] Implement automated deployment of dotfiles
Add automated dotfiles deployment scripts
Dec 8, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Manual copying and syncing of dotfiles between repository and machines is time-consuming and error-prone.
Changes
deploy.sh - Symlinks repository dotfiles to
$HOME:file.backup.YYYYMMDD_HHMMSS)--dry-run).profile,.zshrc,.vim/, and.config/*/subdirectoriesuninstall.sh - Removes deployed symlinks:
--restore)--dry-run)README.md - Added installation and usage documentation
Example Usage
Both scripts pass shellcheck validation and handle edge cases (existing files, broken symlinks, permission errors).
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.