News for hackers. Stuff that matters.
Re:Interesting Bash Prompts by thristian on Sunday September 06, 2009 @07:12AM (#807694)
In a prior life I used zsh and learned to love its show-current-directory-trimmed-to-length prompt code, but these days I've succumbed to inertia and use bash.

With much messing around, I managed to figure out how to replicate the same functionality in bash:

    http://screwtape.jottit.com/how_to_limit_the_length_of_your_bash_prompt

There are no comments on this comment yet.