Command marks
See how each command finished, jump between prompts and copy a command's output.
A green or red bar shows beside each finished command, and you can jump between prompts or copy a command's output. Local zsh and bash shells get this automatically on macOS and Linux, without changing your dotfiles.
Remote shells
For a remote bash or zsh, run Enable command marks in this remote shell from the palette. It applies to that session only and writes no files.
Where marks do not work
Marks do not work in local PowerShell and cmd tabs, or in the bash that ships with macOS.