After mucking around for an hour trying to get this information into my prompt, I realised atuin already had it.