Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Update mac names
set -l name Gilad-MBP-Personal
sudo scutil --set ComputerName $name
sudo scutil --set LocalHostName $name
sudo scutil --set HostName $name
dscacheutil -flushcache
sudo reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.