In my ubuntu terminal I have always current directory shown completely. Just like this:
blabla@blublu:~/music/my_album/classical/beethoven$
But in my Mac (Mac OS X 10.6.5) terminal does not show the full path and it is like this:
blabas-MacBook-Pro:classical beethoven$
Is there anyway that I change mac terminal behavior to act like linux terminal?
Best Answer
To let bash return "user@hostname:path/to/directory$" as your prompt, add the following line to your ~/.bash_profile:
or
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 (
man bash
):