Skip to content

fix: auto-add install dir to PATH#71

Merged
George-iam merged 1 commit intomainfrom
feat/install-auto-path-20260324
Mar 24, 2026
Merged

fix: auto-add install dir to PATH#71
George-iam merged 1 commit intomainfrom
feat/install-auto-path-20260324

Conversation

@George-iam
Copy link
Contributor

Summary

  • Install script now automatically adds ~/.local/bin to PATH in the user's shell rc file
  • Detects shell: zsh → .zshrc, bash → .bash_profile/.bashrc, fish → config.fish, other → .profile
  • Idempotent: skips if PATH entry already exists in rc file or current PATH
  • Also exports PATH in the running session so axme works immediately after install

Before

Add /Users/you/.local/bin to your PATH if it is not already present.

User had to manually edit rc file → axme: command not found.

After

Adding /Users/you/.local/bin to PATH in /Users/you/.zshrc...
Done. PATH updated for current and future sessions.

Test plan

  • Fresh install on macOS zsh — verify .zshrc updated, axme version works
  • Re-run install — verify no duplicate line added
  • Install with PATH already containing ~/.local/bin — verify no rc file modification
  • Install on Linux bash — verify .bashrc or .bash_profile updated

The installer now detects the user's shell (zsh/bash/fish) and
appends the PATH export to the appropriate rc file instead of
just printing a generic hint. Idempotent — skips if already present.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@George-iam George-iam merged commit b166827 into main Mar 24, 2026
1 check passed
@George-iam George-iam deleted the feat/install-auto-path-20260324 branch March 24, 2026 12:43
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