While discovering the joys of bash and how to program the shell’s prompt I ran across Changing your bash prompt and Programming the bash prompt. A broad and useful manual for the bash shell can also be found here.
I have been writing on the web since 2000. I am a christian , a photographer, an occasional poet, a recovering dreamer, an occasional philosopher, a software developer, an autodidact, and i resemble the INFP personality type.
At the bash prompt:
$ PS1=”w u–> ”
This will solve the problem you mentioned previously, as you’ll notice. No more …you’ll always know what directory you’re in.
No more “print working directory” every time you come back to the terminal…
*chuckle* … I’m gonna have to fix that… it turns > < signs to HTML...
That will basically give you an old-school C prompt, including whatever directory you happen to be in. Sorry about the jargon.