Mac terminal shows 'null' for host name at the prompt I've got a new Mac and I've noticed on the terminal I get a null instead of some kind of name there before on my previous computer.

Last login: Fri Mar  9 10:14:57 on ttys000
(null):~ Macuser$


I'm pretty sure thats not normal and occasionally it does fix itself! Why is it doing this?
Have a look in your .bashrc and .bash_profile... for instance I have the line

PS1="\[\e[0;32m\]\u@monkey:\w\$ \[\e[0m\]"

before fi to set my prompt.