Re:Your Bash Prompt Needs This
by air-lemming on Sunday April 29, 2012 @03:25AM
(#3905394)
That solution sounds even more hacky. Just like I expected resizing my iterm2 window causes glitches because it's text reflowing. I love that feature, but I realize this isn't a problem for all terminals.
This does break if the terminal has auto wrap turned off (echo -e "\033[?7l"), but otherwise it's very clever.