Expand description
PATH manipulation, always over OsString (paths may be non-UTF8).
Functions§
- prepend_
dedup dirprepended tocurrent, with any pre-existing occurrence ofdirremoved (dedupe, so nesteddejavu startdoesn’t stack shim dirs).- split_
path - Split
PATHinto entries, dropping empty entries (POSIX “current dir”). - without_
dir currentwith every occurrence ofdirremoved — the sanitized PATH the real command runs against, so nested tool calls don’t re-enter a shim.