Repository navigation
feat(): make gitrid a command on the PATH, not an alias - #17
Merged
Merged
Conversation
The setup scripts made gitrid an alias in ~/.bashrc, which a shell that is not interactive (a script, a hook, an AI agent) does not load, so gitrid was "command not found" there. setup_gitbash.sh now writes a wrapper to ~/bin/gitrid, and setup_linux.sh links /usr/local/bin/gitrid to the script. Neither adds the alias any more; one left by an older install is not removed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merged
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.
Why
The setup scripts made
gitridan alias in~/.bashrc. A shell that is not interactive (a script, a hook, an AI agent) does not load aliases, sogitridwas "command not found" there.What changed
setup_gitbash.shwrites a wrapper to~/bin/gitridthat runs~/Scripts/gitrid.sh. A wrapper, notln -s: Git Bash copies the file where it can not make a link, and the copy would go stale on update. It says to open a new Git Bash window when~/binis not on the PATH yet.setup_linux.shlinks/usr/local/bin/gitridto/usr/local/bin/gitrid.sh. The old path is kept, sogitrid.ps1andgitrid.batare unchanged.README.mdandllms.txtdescribe the command in place of the alias.Tests
tests/setup.bats: runssetup_gitbash.shagainst a throwaway home and checksgitridresolves and runs in a non-interactive shell.setup_linux.shfor real and checksgitridis on the PATH. This is its first run, as it needssudo.🤖 Generated with Claude Code