News for hackers. Stuff that matters.
Re:Your Bash Prompt Needs This by eridius on Friday April 27, 2012 @01:09PM (#3900037)
I used to do this in my prompt, but it caused more problems than it solved, since sometimes programs actually put legitimate output on the last line without a terminator.

The simpler fix is just to notice that your prompt has shifted over (it's almost impossible not to notice) and just hit return before doing anything.

Re:Your Bash Prompt Needs This by mgedmin on Saturday April 28, 2012 @10:04AM (#3902961)
I added a newline (\n) to the beginning of my prompt. This way I never lose program output -- and also it's easier to see where previous commands begin and end in the scrollback buffer.
Re:Your Bash Prompt Needs This by eridius on Saturday April 28, 2012 @03:41PM (#3903863)
You also get tons of blank lines, right? That would annoy the heck out of me.
Re:Your Bash Prompt Needs This by spiffytech on Saturday April 28, 2012 @09:01PM (#3904705)
My prompt is five lines tall, including three blank lines. I did that, along with some bright green coloring, to make the prompt easier to spot as I rapidly scroll up through a mountain of output from my last command.

zsh prompt:

PROMPT='

%{$prompt_default_color%} %~ %* %{${fg[$prompt_user]}%}%n%{$prompt_default_color%}@%{${fg[$prompt_host]}%}%M%{$prompt_default_color%} ${vcs_info_msg_0_}_

$ %{${fg[default]}%}'