Created
October 12, 2014 17:50
-
-
Save flammable/2544560e13b241dcf5fe to your computer and use it in GitHub Desktop.
This file contains 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 | |
HOSTN=`scutil --get LocalHostName` | |
scutil --set HostName "$HOSTN" | |
scutil --set ComputerName "$HOSTN" | |
exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment