Skip to content

feat(install): auto-add install dir to shell profile#6

Merged
jarvan1 merged 1 commit into
mainfrom
feat/install-auto-path
Jul 9, 2026
Merged

feat(install): auto-add install dir to shell profile#6
jarvan1 merged 1 commit into
mainfrom
feat/install-auto-path

Conversation

@jarvan1

@jarvan1 jarvan1 commented Jul 9, 2026

Copy link
Copy Markdown
Owner

What

The one-line installers now put the install dir on PATH automatically instead of only printing a hint.

install.sh

  • Detects the login shell via $SHELL and appends the right line to the matching profile:
    • zsh~/.zshrc (respects $ZDOTDIR)
    • bash~/.bashrc (falls back to ~/.bash_profile)
    • fish~/.config/fish/config.fish (uses fish_add_path)
    • sh/dash/other → ~/.profile
  • Idempotent: skips if the dir is already referenced in the profile.
  • No-op when the dir is already on PATH.

install.ps1

  • Continues to add the install dir to the user PATH via SetEnvironmentVariable.

Both

  • Honor AISS_NO_MODIFY_PATH=1 to opt out and just print the line to add manually.

README documents the behavior and the opt-out.

Testing

  • sh -n install.sh passes.
  • ensure_path logic verified in isolation across zsh / bash / fish / dash and the opt-out path — correct target profile, correct line, and idempotency all confirmed.

🤖 Generated with Claude Code

The one-line installers now put the install dir on PATH automatically
instead of only printing a hint:

- install.sh detects the login shell via $SHELL and appends the right
  export/fish_add_path line to .zshrc / .bashrc (or .bash_profile) /
  config.fish / .profile. Idempotent (skips if already referenced) and
  a no-op when the dir is already on PATH.
- install.ps1 keeps adding to the user PATH via SetEnvironmentVariable.
- Both honor AISS_NO_MODIFY_PATH=1 to opt out and just print the line.

README documents the behavior and the opt-out.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@jarvan1
jarvan1 merged commit 94113b8 into main Jul 9, 2026
1 check passed
@jarvan1
jarvan1 deleted the feat/install-auto-path branch July 9, 2026 02:08
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