Skip to content

fix: auto-add ~/.local/bin to PATH in install script#10

Merged
RealZST merged 1 commit intomainfrom
fix/install-script-path
Apr 13, 2026
Merged

fix: auto-add ~/.local/bin to PATH in install script#10
RealZST merged 1 commit intomainfrom
fix/install-script-path

Conversation

@RealZST
Copy link
Copy Markdown
Owner

@RealZST RealZST commented Apr 13, 2026

Summary

  • Automatically adds ~/.local/bin to PATH in the user's shell config (.zshrc, .bashrc, or .profile)
  • Checks for existing entries to avoid duplicate lines on re-runs
  • Adds OS check to reject non-macOS systems with a clear error message

Test plan

  • Tested on macOS — correctly installs and skips PATH write when already present
  • POSIX sh compatible (no local keyword, no bash-isms)
  • Re-run doesn't duplicate PATH entries

🤖 Generated with Claude Code

Automatically appends export PATH to the user's shell config (.zshrc,
.bashrc, or .profile) if ~/.local/bin is not already in PATH. Checks
for existing entries to avoid duplicate lines on re-runs.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@RealZST RealZST merged commit a2e3eb7 into main Apr 13, 2026
3 checks passed
@RealZST RealZST deleted the fix/install-script-path branch April 13, 2026 19:42
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.

1 participant