Skip to content

Instantly share code, notes, and snippets.

@earljon
Created August 19, 2017 14:54
Show Gist options
  • Save earljon/366a92e550dcd9ccb136166d75df83ca to your computer and use it in GitHub Desktop.
Save earljon/366a92e550dcd9ccb136166d75df83ca to your computer and use it in GitHub Desktop.
Match OSX Terminal with Computer's Name and Hostname
# Run these in terminal window
sudo scutil --set ComputerName "ejh-devops-home"
sudo scutil --set LocalHostName "ejh-devops-home"
sudo scutil --set HostName "ejh-devops-home"
# Close all terminal and open
# Clear DNS cache
dscacheutil -flushcache
# Restart if necessary
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment