Created
August 8, 2017 07:05
-
-
Save tom-henderson/3ffcebac0162d80673070f088b26c091 to your computer and use it in GitHub Desktop.
Set hostname on OSX
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -eux | |
hostname=$1 | |
scutil --set HostName ${hostname} | |
scutil --set ComputerName ${hostname} | |
scutil --set LocalHostName ${hostname} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment