Command line history alignment issue
asparagusfox opened this issue · comments
Axel Baker-Bates commented
Using previous commands in the history (up arrow) sometimes messes up the alignment of the text and the position of the "real text" which shifts to the right it seems.
By this I mean that the cursor in the image is at the start of the line (by pressing ^A or Home) but it appears to be in the middle of the command line text.
The command will still work fine, but frustrating when I'd like to edit a previous command. (It can be done by calculating the offset).
I noticed ^L in bash (clear the terminal) will fix the alignment.
Axel Baker-Bates commented
Turns out it was my PS1 config messing it up.