vim has a really nice feature which it utilizes in its paths when they're a bit long:

It abbreviates the path to the document in the tab at the top. Is there a way to do something similar to this so my bash prompt doesn't look like this:
rfkrocktk@work-laptop ~/Documents/Projects/Work/maventest/src/main/java/com/tkassembled/ $
rfkrocktk@work-laptop ~/D/P/W/m/src/main/java/com/tkassembled/ $? Ideally, using some threshold for maximum prompt length? – nicerobot Dec 14 '11 at 19:21