Created
August 19, 2017 14:54
-
-
Save earljon/366a92e550dcd9ccb136166d75df83ca to your computer and use it in GitHub Desktop.
Match OSX Terminal with Computer's Name and Hostname
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
# 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