Skip to content

Add ~/.local/bin/git-ai symlink in install.sh#616

Merged
svarlamov merged 4 commits intomainfrom
devin/1772314006-local-bin-symlink
Mar 1, 2026
Merged

Add ~/.local/bin/git-ai symlink in install.sh#616
svarlamov merged 4 commits intomainfrom
devin/1772314006-local-bin-symlink

Conversation

@svarlamov
Copy link
Member

@svarlamov svarlamov commented Feb 28, 2026

Add ~/.local/bin/git-ai symlink in install.sh

Summary

Adds a ~/.local/bin/git-ai symlink during installation so that git-ai is immediately available on systems where ~/.local/bin is already on PATH (common default on Ubuntu, Fedora, and other Linux distros).

  • install.sh (Linux/macOS): Creates a symlink at ~/.local/bin/git-ai~/.git-ai/bin/git-ai. Wrapped in non-fatal if/else with 2>/dev/null so failures don't abort the install under set -euo pipefail.
  • CI: Adds verification for the symlink in the install-scripts-local workflow (Unix only).
  • Windows: No changes — ~/.local/bin is not a standard PATH directory on Windows, and the existing install.ps1 already handles User PATH updates for ~/.git-ai/bin without admin.

Closes #597

Review & Testing Checklist for Human

  • Unconditional ~/.local/bin creation: The installer creates ~/.local/bin/ via mkdir -p even if it didn't previously exist. Verify this is acceptable — some users may not want this directory created (especially on macOS where ~/.local/bin is less standard).
  • Manual install test: Run install.sh locally and verify ~/.local/bin/git-ai exists as a working symlink pointing to ~/.git-ai/bin/git-ai.

Notes

- 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>
@devin-ai-integration
Copy link
Contributor

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

@git-ai-cloud
Copy link

git-ai-cloud bot commented Feb 28, 2026

No AI authorship found for these commits. Please install git-ai to start tracking AI generated code in your commits.

@git-ai-cloud-dev
Copy link

No AI authorship found for these commits. Please install git-ai to start tracking AI generated code in your commits.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

devin-ai-integration[bot]

This comment was marked as resolved.

Co-Authored-By: Sasha Varlamov <sasha@sashavarlamov.com>
devin-ai-integration[bot]

This comment was marked as resolved.

devin-ai-integration bot and others added 2 commits February 28, 2026 21:32
Co-Authored-By: Sasha Varlamov <sasha@sashavarlamov.com>
…t standard on Windows)

Co-Authored-By: Sasha Varlamov <sasha@sashavarlamov.com>
@devin-ai-integration devin-ai-integration bot changed the title Add ~/.local/bin/git-ai symlink (Unix) and .cmd shim (Windows) Add ~/.local/bin/git-ai symlink in install.sh Mar 1, 2026
@svarlamov svarlamov merged commit 746bfb8 into main Mar 1, 2026
23 checks passed
@svarlamov svarlamov deleted the devin/1772314006-local-bin-symlink branch March 1, 2026 03:09
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.

Update install.sh to add ~/.local/bin/git-ai symlink

2 participants