Add ~/.local/bin/git-ai symlink in install.sh#616
Open
Conversation
- install.sh: Create symlink at ~/.local/bin/git-ai pointing to ~/.git-ai/bin/git-ai - install.ps1: Create git-ai.cmd shim at ~/.local/bin/ (no admin required) - CI: Add verification for both the symlink and shim Closes #597 Co-Authored-By: Sasha Varlamov <sasha@sashavarlamov.com>
Contributor
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
|
No AI authorship found for these commits. Please install git-ai to start tracking AI generated code in your commits. |
|
No AI authorship found for these commits. Please install git-ai to start tracking AI generated code in your commits. |
|
|
Co-Authored-By: Sasha Varlamov <sasha@sashavarlamov.com>
Co-Authored-By: Sasha Varlamov <sasha@sashavarlamov.com>
…t standard on Windows) Co-Authored-By: Sasha Varlamov <sasha@sashavarlamov.com>
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.
Add ~/.local/bin/git-ai symlink in install.sh
Summary
Adds a
~/.local/bin/git-aisymlink during installation so thatgit-aiis immediately available on systems where~/.local/binis already on PATH (common default on Ubuntu, Fedora, and other Linux distros).~/.local/bin/git-ai→~/.git-ai/bin/git-ai. Wrapped in non-fatalif/elsewith2>/dev/nullso failures don't abort the install underset -euo pipefail.~/.local/binis not a standard PATH directory on Windows, and the existinginstall.ps1already handles User PATH updates for~/.git-ai/binwithout admin.Closes #597
Review & Testing Checklist for Human
~/.local/bincreation: The installer creates~/.local/bin/viamkdir -peven if it didn't previously exist. Verify this is acceptable — some users may not want this directory created (especially on macOS where~/.local/binis less standard).install.shlocally and verify~/.local/bin/git-aiexists as a working symlink pointing to~/.git-ai/bin/git-ai.Notes