Skip to content

foldHomePath

foldHomePath(command, home): string

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/core/shell/rater.ts:860

Fold an absolute home path to ~ so the rater sees a stable, less-identifying form (mirrors hermes _normalize_command_for_detection path folding). Best-effort: only the literal home dir prefix is folded.

string

string | undefined

string