Modules§
Structs§
Functions§
- atomically_
remove_ lines_ from_ file - atomically_
remove_ matching_ lines_ from_ file - 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). - default_
db_ path - Return the default database path (
pxh_data_dir()/pxh.db). - effective_
host_ set - Build the set of hostnames that count as “this host” for recall filtering. Returns {current_hostname} ∪ {aliases}, deduped.
- get_
hostname - get_
setting - import_
bash_ history - import_
json_ history - import_
zsh_ history - initialize_
base_ schema - Initialize base schema and register custom functions on a connection. Safe to call on foreign databases (scan/scrub –dir) – all DDL is idempotent and the memdb ATTACH is per-connection only.
- json_
export - migrate_
host_ settings - Migrate host settings from DB legacy storage to config file. Called from install and config commands, not on every connection.
- present_
results_ human_ readable - pxh_
config_ dir - Return the pxh config directory. Prefers XDG, falls back to
~/.pxhif it exists. New installs default to$XDG_CONFIG_HOME/pxh(~/.config/pxh). - pxh_
data_ dir - Return the pxh data directory. Prefers XDG, falls back to
~/.pxhif it exists. New installs default to$XDG_DATA_HOME/pxh(~/.local/share/pxh). - resolve_
hostname - Resolve hostname: config > DB setting (legacy “original_hostname”) > live hostname.
- run_
schema_ migrations - Run versioned schema migrations tracked via PRAGMA user_version.
- set_
setting - sqlite_
connection