Skip to content

These docs are for the newly-released v4.

If you are or were using v3, check out What's New. If you are or were using v3 and do advanced configuration, read the migration guide and/or read about pinning v3.x.

 

 

Timestamp range in prompt

To use to the same timestamp range as the transient prompt, which is

prompt drawn timestamp - next command execution start timestamp

if the two are on the same day, and

prompt drawn date and timestamp - next command execution start date and timestamp

if they are on different days, set HOMETOWN_CUSTOM to '%(5V.%4v %v - %W %*.%v-%*)' before loading Hometown.

shell
# .zshrc

HOMETOWN_CUSTOM='%(5V.%4v %v - %W %*.%v-%*)'
# and then load hometown-prompt here