Linked by Shane on Wed 24th Nov 2010 22:40 UTC
General Development "It is sometimes hard to form a mental model of a directory tree when working with the command line. GUI shells tend to provide more visual cues. So, like a lot of Bash users, I used to get around this by printing the current working directory in my shell prompt. However, things can get pretty cramped when dealing with deeply nested directories. A better solution is needed."
Permalink for comment 451108
To read all comments associated with this story, please click here.
by Icaria on Thu 25th Nov 2010 10:30 UTC
Member since:

Add an \n after the \u \h and \w escape sequences. Problem solved.

Reply Score: 1