A Powerline-style prompt for Bash
github.com
github.com
It looks like this: http://i.imgur.com/523PD.png
which looks like that : http://i.imgur.com/Qc86I.png
I like having an uri directly pastable to scp. Also, as mentioned in other comments, Having a fixed length prompt on the command line is quite appreciable.
I'm unsatisfied, though, with the need of subshells to draw a single prompt. It's ok for the git part, but I feel like the PROMPT_COMMAND part is a hack, I just can't succeed in making it displays colors (rather than escaped characters) without a subshell.
p.append(' \u ', 250, 240)
p.append(' \h ', 250, 238)However, for your problem, have you considered the terminal's title instead of the top line of the tty? printf '\033]0;foo\007'
Edit: If I understand what you're doing, then maybe you can use this:
tput ind; tput home; tput il1; echo -n "header"; tput el; tput cup $LINES 0
Use "man terminfo" to lookup things like "il1" and use "infocmp" to see what they translate to in your terminal.