feat(install): auto-add install dir to shell profile#6
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The one-line installers now put the install dir on
PATHautomatically instead of only printing a hint.install.sh
$SHELLand appends the right line to the matching profile:zsh→~/.zshrc(respects$ZDOTDIR)bash→~/.bashrc(falls back to~/.bash_profile)fish→~/.config/fish/config.fish(usesfish_add_path)sh/dash/other →~/.profilePATH.install.ps1
PATHviaSetEnvironmentVariable.Both
AISS_NO_MODIFY_PATH=1to opt out and just print the line to add manually.README documents the behavior and the opt-out.
Testing
sh -n install.shpasses.ensure_pathlogic 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