Last active
April 11, 2020 11:30
-
-
Save bard86/bf4ded07c83ae6b99c162b05e1263184 to your computer and use it in GitHub Desktop.
Set MacBook host name
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 | |
set -e | |
sudo hostname MacBook.local | |
scutil --set HostName MacBook.local |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment