31
14
When I open Terminal I expect it to show what my PS1 is set to \h:\W \u\$
.
However it's not displaying my hostname Eriks-MacBook
, as displayed in System Preferences.
Instead, it's showing a random string unknownb88d120cd4b2
.
How can this be fixed or reset?
This machine is brand new, and the preferences/settings haven't been changed.
See also http://apple.stackexchange.com/questions/30552/os-x-computer-name-not-matching-what-shows-on-terminal
– rogerdpack – 2014-12-19T19:50:17.600Type in
hostname
into the prompt and press enter. What do you get? – Blender – 2011-11-14T04:27:12.423unknownb88d120cd4b2:~ erik$ hostname unknownb88d120cd4b2 unknownb88d120cd4b2:~ erik$ – None – 2011-11-14T04:43:57.293
But that is not what my computer's name is in System Prefs - Sharing. I changed it from default to "erik-mba" hoping that would help, but no dice. – None – 2011-11-14T04:45:21.740