Expand description
Locate command-line executables. Each lookup target is treated as
a PATH name when it has no separators, or as a file path otherwise.
Structs§
Enums§
Functions§
- enriched_
environ - enriched_environ returns the current environment with PATH merged from the process and login-shell PATH, order preserved and duplicates dropped. Use it when spawning child processes that must find user-installed tools.
- list_
npm_ global_ bin_ dirs - list_
system_ bin_ dirs - list_
user_ local_ bin_ dirs - list_
windows_ application_ dirs - login_
path - login_path returns the PATH as seen by the user’s interactive login shell. GUI applications launched outside a terminal on macOS and Linux do not inherit the shell’s PATH additions; this recovers them. On Windows, and when the shell cannot be queried, it falls back to the current process PATH.