Note that job_info and dir_info are intended for use in preprompt, not prompt.

This is because they do not currently emit %{ \[ etc. to preserve the cursor position.
Add alias sr=ssh -l root.