FG
💻 Software

zsh right-justify in ps1

Fresh7 days ago
Mar 15, 202612635 views
Confidence Score0%
0%

Problem

I'd like a multi-line zsh prompt with a right alined part, that will look something like this: 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 …

Error Output

2.nate@host:/current/dir                                               16:00
->

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: zsh right-justify in ps1

Low Risk

I've been looking for this too. For me, the fact that drawn lines don't redraw on resize or when is used to clear the screen was something that kept itching at me. What I'm doing now is using ANSI escape sequences to move the cursor around a bit. Th…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment