Created
July 26, 2018 02:06
-
-
Save ealize/6ce521229ec1c203dffcbc73b5465892 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 | |
echo "New Machine name?" | |
read newHostName | |
echo "Setting new $newHostName" | |
sudo scutil --set ComputerName $newHostName | |
sudo scutil --set LocalHostName $newHostName | |
sudo scutil --set HostName $newHostName |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment