On a Mac the hostname and prompt is:
On Ubuntu Linux it would be:
How can I make the OS X prompt look like the Ubuntu one?
Just run this command in terminal
This is temporary, that means after running this command if you close the terminal again, the default prompt will appear.
If you want to set permanently, then insert below line in your