Expand description
Zsh history (.zsh_history).
With EXTENDED_HISTORY each entry is : <beginning_time>:<elapsed_seconds>;<command>
(zsh Options manual). A command containing newlines is written with each
embedded newline escaped as a trailing backslash before the physical newline;
the reader rejoins backslash-continued physical lines (zsh Src/hist.c
readhistline). Without EXTENDED_HISTORY the file is plain one-per-line.
Functions§
- is_
extended_ line - True if
linebegins with theEXTENDED_HISTORYmetadata prefix: <digits>:<digits>;. - parse
- Parse zsh history bytes into entries.