Skip to main content
7 events
when toggle format what by license comment
Mar 5, 2021 at 18:41 comment added libbynotzoey Using a fixed IP address and restarting terminal solved this for me. I would still like to know where the strange hostname came from. It was nothing I would ever use but it was not incorrect, either.
May 1, 2015 at 22:20 vote accept sodiumnitrate
May 1, 2015 at 22:14 comment added bmike @sodiumnitrate After using --get to verify all three, set the ones that are wrong and then if needed, restart terminal.
May 1, 2015 at 22:02 comment added sodiumnitrate Ok, I got a little confused. So when I do scutil --get ComputerName or the other 2, I can see that it's been changed to whatever I want them to be. I guess hostname is something different, which is still someone's iPhone. The question is what can I do to get my hostname changed back to what it was. I understand that it's a screw-up with the network (although not sure about how), but I can't do anything there as it's the school's network. I've contacted support, but they didn't seem to have much idea.
May 1, 2015 at 21:54 comment added bmike @sodiumnitrate When you spawned that shell - the host name was SomeonesiPhone and the hostname command agrees. Perhaps you are referring to the other two possible names - HostName, ComputerName, LocalHostName - not changing? Either way, set it the way you want and then have your shell fix $PS1 (or quit the shell and start a new one once you've resolved the naming confusion)
May 1, 2015 at 21:47 comment added sodiumnitrate It did not change anything. The hostname does not get changed. The computer name has been Irems-MacBook-Pro all the time, and it still is.
May 1, 2015 at 21:42 history answered bmike CC BY-SA 3.0