MacOSHostname

5th February 2018 at 5:26pm
TechnicalNotes
for prop in ComputerName HostName LocalHostName
do
  sudo scutil --set "$prop" "${USER}-laptop"
done
dscacheutil -flushcache