In my ubuntu terminal I have always current directory shown completely. Just like this:
But in my Mac (Mac OS X 10.6.5) terminal does not show the full path and it is like this:
Is there anyway that I change mac terminal behavior to act like linux terminal?
To let bash return "user@hostname:path/to/directory$" as your prompt, add the following line to your ~/.bash_profile:
if you like having a space between the $ and the command
to make the changes take effect immediately, run the following command in every open window (or restart Terminal):
EDIT: A list of available strings can be found in the paragraph "PROMPTING" in the man page for bash (