by lelanthran · 2y ago · 0 comments
The standard prompt is PS1, which after every command, places the cursor at some point in the line that depends on the width of $PS1 contents.
By appending a newline to the existing PS1 variable, the cursor is always at the same point after every command - far left on the last line.
I did play with embedding the last command into the PS1 variable too, so that not only is the cursor at a constant position, but the line above it prints the last command too (!! or something like that)