Skip to content

Add install.sh for Devcontainer dotfiles integration#21

Draft
Copilot wants to merge 4 commits intomainfrom
copilot/add-install-script-for-dotfiles
Draft

Add install.sh for Devcontainer dotfiles integration#21
Copilot wants to merge 4 commits intomainfrom
copilot/add-install-script-for-dotfiles

Conversation

Copy link
Copy Markdown

Copilot AI commented Dec 8, 2025

Devcontainers require an install.sh script at the repository root to automatically install dotfiles when the container is created.

Changes

  • install.sh: Symlinks dotfiles to $HOME on execution
    • Links .zshrc, .profile, .vim to home directory
    • Links each .config/ subdirectory individually (alacritty, clangd, git, nvim, tmux)
    • Backs up existing files with .backup suffix before overwriting
    • Idempotent - safe to run multiple times
    • Uses ASCII output for cross-terminal compatibility

Usage

# Devcontainer runs this automatically, or invoke manually:
./install.sh

# Output:
Installing dotfiles from /path/to/dotfiles
Installing shell configuration files...
  [OK] Linked /home/user/.zshrc -> /path/to/dotfiles/.zshrc
  [OK] Linked /home/user/.profile -> /path/to/dotfiles/.profile
...
[SUCCESS] Dotfiles installation complete!
Original prompt

This section details on the original issue you should resolve

<issue_title>Create install.sh</issue_title>
<issue_description>That would make it possible for the Devcontainers to install dotfiles seamlessly.</issue_description>

Comments on the Issue (you are @copilot in this section)


💡 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 3 commits December 8, 2025 08:26
Co-authored-by: kirillbobyrev <3352968+kirillbobyrev@users.noreply.github.com>
Co-authored-by: kirillbobyrev <3352968+kirillbobyrev@users.noreply.github.com>
Co-authored-by: kirillbobyrev <3352968+kirillbobyrev@users.noreply.github.com>
Copilot AI changed the title [WIP] Add install.sh for seamless dotfiles installation Add install.sh for Devcontainer dotfiles integration Dec 8, 2025
Copilot AI requested a review from kirillbobyrev December 8, 2025 08:31
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.

Create install.sh

2 participants