Skip to content

Instantly share code, notes, and snippets.

@rense
Created March 10, 2017 21:03
Show Gist options
  • Save rense/8a192109aa41348f56cd1a00c97ec2b3 to your computer and use it in GitHub Desktop.
Save rense/8a192109aa41348f56cd1a00c97ec2b3 to your computer and use it in GitHub Desktop.
export MY_HOSTNAME=foobar; for n in LocalHostName ComputerName HostName; do sudo scutil --set $n $MY_HOSTNAME; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment