This question already has an answer here:
I have a 2011 MacBook Pro and it's name is set to MacDavid. I expect it to appear the same in Terminal.app, but it instead shows this:
When i change the equip name, Terminal is indiferent. Any suggestion as to what could be causing this and how to resolve?