55 points · by milkbikis · 14y ago · 28 comments
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'