zsh right-justify in ps1
- by Nate
I'd like a multi-line zsh prompt with a right alined part, that will look something like this:
2.nate@host:/current/dir 16:00
->
I know about RPROMPT in zsh, but that has a right-aligned prompt opposite your normal prompt, which is on the same line of text as your typing.
Is there a way to have a right-aligned portion to the first line of a multi-line command prompt? I'm looking for either a directive in the PS1 variable that says 'right align now' or a variable that is to PS1 what RPROMPT is to PROMPT.
Thanks!