|
zpmod
b19981f
High-performance Zsh module for script optimization and filesystem helpers
|
zpmod builtin accepts flags and subcommands.
Global flags:
-h usage-V versionSubcommands:
Appends <body> to ZI_REPORTS[plugin-ID]. Non-zero status if plugin ID missing.
Outputs timed listing of sourced files.
Notes:
init.zsh).-l to print full absolute paths (e.g., /home/user/.zshrc.d/init.zsh).List entries in dir into array.
Stat each path from in_array and write per-path records to out_array.
Scan $PATH directories and touch executable entries to warm filesystem caches.
Notes:
-q runs quietly (recommended for startup hooks).--prune-missing is reserved for future behavior; currently a no-op.Read file into scalar var or split into array using delimiter.
Notes:
var is a scalar, the entire contents are stored.var is an array, records are split on the delimiter provided with -d <delim> or -0 (NUL).-d: \n, \r, \t, \0.\r, a \r\n sequence (CRLF) is treated as a single separator.a\nb\n with -d "\n" yields ("a" "b")).