$ PS1="\[$(tput bold)\]\w\\\$\[$(tput sgr0)\] "
$ cd /tmp
$ for i in 1 2 3 4 5 6 7 8; do mkdir 1234567890; cd 1234567890; done

The second line of the prompt is not rendered in bold, and as the edited
line gets longer the cursor jumps to the leftmost screen column.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."

Reply via email to