Created
March 1, 2019 15:48
-
-
Save zackn9ne/c7d3a41ed939567d6e4dae8e7b40c48d to your computer and use it in GitHub Desktop.
hostname_mojave
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/sh | |
echo "Please enter your desired hostname NO SPACES ALLOWED, use dash" | |
read HWNAME | |
scutil --set ComputerName "$HWNAME" | |
scutil --set LocalHostName "$HWNAME" | |
dscacheutil -flushcache |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment