Make non-root install land decodo on PATH without the full path#43
Open
paulius-krutkis-dcd wants to merge 2 commits into
Open
Make non-root install land decodo on PATH without the full path#43paulius-krutkis-dcd wants to merge 2 commits into
paulius-krutkis-dcd wants to merge 2 commits into
Conversation
The user-level fallback installed to a bespoke ~/.npm-global that is on nobody's PATH, so a non-root user had to invoke the absolute path to the binary. Match the uv/pipx experience: - Install the fallback to the XDG-standard ~/.local (binary in ~/.local/bin), which is commonly already on PATH. - When the install dir is not on PATH, symlink decodo into the first writable directory already on PATH so it is runnable by name immediately. - Always print the short `decodo` command in next-steps and setup guidance instead of the absolute path; show a restart/rehash hint when needed. install.ps1 mirrors the presentation change (always show `decodo`).
ChinchillaLover9000
approved these changes
Jun 30, 2026
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.
Summary
~/.localinstead of~/.npm-global, aligning with common XDG/pipxconventions.decodointo the first writable directory already on PATH so it can run by name immediately when possible.decodorather than an absolute path; PowerShell installer matches that presentation.Test plan
decodois runnable by name or the script prints clear activation/rehash guidance.sh -n docs/install.shand the install-script sandbox tests for PATH scanning and symlink behavior.install.ps1and confirm next steps referencedecodo, not a full path.