[PR #616] [MERGED] Add ~/.local/bin/git-ai symlink in install.sh #613

Closed
opened 2026-03-02 04:14:08 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/git-ai-project/git-ai/pull/616
Author: @svarlamov
Created: 2/28/2026
Status: Merged
Merged: 3/1/2026
Merged by: @svarlamov

Base: mainHead: devin/1772314006-local-bin-symlink


📝 Commits (4)

  • 0b29107 Add ~/.local/bin/git-ai symlink (Unix) and .cmd shim (Windows)
  • d82ba9a Wrap ~/.local/bin symlink in error handling for set -euo pipefail safety
  • b8d70ae Fix double Warning prefix in warn() call
  • 9904eb6 Remove Windows ~/.local/bin shim (not useful since ~/.local/bin is not standard on Windows)

📊 Changes

2 files changed (+11 additions, -0 deletions)

View changed files

📝 .github/workflows/install-scripts-local.yml (+3 -0)
📝 install.sh (+8 -0)

📄 Description

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


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/git-ai-project/git-ai/pull/616 **Author:** [@svarlamov](https://github.com/svarlamov) **Created:** 2/28/2026 **Status:** ✅ Merged **Merged:** 3/1/2026 **Merged by:** [@svarlamov](https://github.com/svarlamov) **Base:** `main` ← **Head:** `devin/1772314006-local-bin-symlink` --- ### 📝 Commits (4) - [`0b29107`](https://github.com/git-ai-project/git-ai/commit/0b291072f64b65340e3e3e3a49552514619cc5f8) Add ~/.local/bin/git-ai symlink (Unix) and .cmd shim (Windows) - [`d82ba9a`](https://github.com/git-ai-project/git-ai/commit/d82ba9a5b28a103044654cfeea09ec0f314a74dd) Wrap ~/.local/bin symlink in error handling for set -euo pipefail safety - [`b8d70ae`](https://github.com/git-ai-project/git-ai/commit/b8d70ae60113dd94f1e756aec006215a0781d6c3) Fix double Warning prefix in warn() call - [`9904eb6`](https://github.com/git-ai-project/git-ai/commit/9904eb62357d763ccc4a27e0614a34c3a1ae0658) Remove Windows ~/.local/bin shim (not useful since ~/.local/bin is not standard on Windows) ### 📊 Changes **2 files changed** (+11 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/install-scripts-local.yml` (+3 -0) 📝 `install.sh` (+8 -0) </details> ### 📄 Description # 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 - Requested by: @svarlamov - [Link to Devin run](https://app.devin.ai/sessions/604e474e8a6e4c479e661579bffd0afa) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-02 04:14:08 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/git-ai#613
No description provided.