Odd Issue: Wrong Hostname in Terminal

tl;dr set hostname in /etc/hostconfig

I wanted to learn one of the version control systems out there before I got to much deeper into learning iOS programming. So I chose git and started watching some videos, jumped into terminal to mess around and noticed something odd, the hostname listed in terminal was for another computer on my network. It even had .local like it was joined to my old Windows domain, since I am migrating away from a Windows environment I never joined my “new” Macbook to the domain.

Some quick googling brought up this gem from an Apple discussion forum, adding the entry “HOSTNAME=desiredHostname” to the /etc/hostconfig file and a restart did the trick. Now I can quit slacking off and get back to learning git.