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 451088
To read all comments associated with this story, please click here.
flynn
Member since:
2009-03-19

I done the same in bash before, but it is a lot less flexible

http://img8.imageshack.us/img8/4928/blender89.png
http://img593.imageshack.us/img593/1929/1002669.jpg (I know, I have an high score of ricerness)

I have a very similar ZSH prompt. I think we both stole the template from http://aperiodic.net/phil/prompt/

Except in mine I have the time on the left and use the rprompt to display which mode I'm in (I use ZSH in vi-mode).

Reply Parent Score: 1