I have a situation in which sometimes when I launch Terminal instead of showing:
computername:~ user$
It instead shows:
192:~ user$
I've already found that the questions OS X computer name not matching what shows on terminal and Machine name set to new-host-X instead of the name set in Preferences are both very closely related to mine. However the solutions placed the origin of the 'problem' at using Xcode or a double internet connection (Wi-Fi + wired).
I have Xcode installed but haven't used it for quite some time. Also, I'm only using a Wi-Fi connection.
So, what could cause Terminal to sometimes display my computername correctly and sometimes only display 192
instead of it?
export PATH=/usr/local/bin:$PATH
which is apparently put there by Homebrew (At least I guess since the comment#Homebrew
is written the line above it). – Montmons Oct 26 '17 at 17:28sudo scutil --set HostName computernamegoeshere
to override the bogus into the DNS server is handing out. – Gordon Davisson Oct 26 '17 at 18:24