Skip to content

Make non-root install land decodo on PATH without the full path#43

Open
paulius-krutkis-dcd wants to merge 2 commits into
mainfrom
improve-noroot-install-path
Open

Make non-root install land decodo on PATH without the full path#43
paulius-krutkis-dcd wants to merge 2 commits into
mainfrom
improve-noroot-install-path

Conversation

@paulius-krutkis-dcd

@paulius-krutkis-dcd paulius-krutkis-dcd commented Jun 30, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • User-level installs now use ~/.local instead of ~/.npm-global, aligning with common XDG/pipx conventions.
  • When the install bin dir is not on PATH, the shell installer symlinks decodo into the first writable directory already on PATH so it can run by name immediately when possible.
  • Next-step output always shows decodo rather than an absolute path; PowerShell installer matches that presentation.
  • Bump version to 1.0.2.

Test plan

  • Run the curl install on a machine without global npm write access; confirm decodo is runnable by name or the script prints clear activation/rehash guidance.
  • Run sh -n docs/install.sh and the install-script sandbox tests for PATH scanning and symlink behavior.
  • On Windows, run install.ps1 and confirm next steps reference decodo, not a full path.

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`).
@paulius-krutkis-dcd paulius-krutkis-dcd changed the title Make non-root install put decodo on PATH (no full path needed) Make non-root install land decodo on PATH without the full path Jun 30, 2026
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.

2 participants