Skip to main content

Module path

Module path 

Source
Expand description

PATH manipulation, always over OsString (paths may be non-UTF8).

Functions§

prepend_dedup
dir prepended to current, with any pre-existing occurrence of dir removed (dedupe, so nested dejavu start doesn’t stack shim dirs).
split_path
Split PATH into entries, dropping empty entries (POSIX “current dir”).
without_dir
current with every occurrence of dir removed — the sanitized PATH the real command runs against, so nested tool calls don’t re-enter a shim.