Rewrite a file removing lines that exactly match any of the contraband items.
Unlike atomically_remove_lines_from_file, this matches complete lines (after trimming).
Read this database’s local_machine_id setting, parsed as u64.
Accepts either TEXT or BLOB storage so we tolerate values written by
non-pxh tooling. Returns None if the setting is absent or unparseable –
callers should fall back to non-watermarked behavior in that case.
Render rows as a borderless table: one space of padding each side of
every cell, every cell padded to its column’s width in terminal columns,
a multi-line cell continued on the following lines, and each cell’s
style wrapping content and padding together. Colors are emitted
unconditionally; the caller prints through anstream, which strips them
when stdout is not a terminal.
Resolve symlinks in a path, even if the final target doesn’t exist yet.
Walks components left-to-right: canonicalizes each prefix that exists on disk,
follows symlinks whose targets don’t exist yet, and appends remaining components.
Undo zsh’s internal “metafication”: bytes in its token range are stored as
0x83 followed by the byte XOR 0x20. Most CJK and emoji UTF-8 sequences
contain such bytes, so history written by zsh must be decoded before use.
Run f against a write transaction, retrying on SQLITE_BUSY/SQLITE_LOCKED
with exponential backoff and jitter. Each attempt uses BEGIN IMMEDIATE so
contention is detected up front rather than mid-transaction. Gives up once
max_total elapses and returns the final busy error.