-
I am trying to customize my prompt, and I would like to have an Let's say my prompt is like this:
This results in:
This is pretty good, but, how would I make the
That way, the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You would need to add the
The spacer can be computed dynamically from the content you display and the amount of characters per row. You can check this very thorough answer: https://unix.stackexchange.com/a/250457 |
Beta Was this translation helpful? Give feedback.
You would need to add the
$RPROMPT
contents to your$PROMPT
on the top line, and add a spacer string (of empty spaces) so that the content is displayed on the right. As far as I know there's no other way around that:The spacer can be computed dynamically from the content you display and the amount of characters per row. You can check this very thorough answer: https://unix.stackexchange.com/a/250457