This is unlikely to be a security issue, nor any issue with data retained on the machine. Terminal shows the DNS name provided by the network if your friend hasn’t overridden the default setup.
Instead, what is happening is that the router that your friend is using is remembering the old cached hostname of your computer Coltons-Air
, and it is assigning it to the computer.
If you performed the “Erase All Content and Settings” from the Apple article, then your machine has been factory reset, with no data retained.
Check out this other post for more details for a similar person concerned about wrong identity in the terminal app. For reasons, Apple made the shell (bash
or zsh
typically) to use what the router stored for the last computer seen and not use the name of the Mac connecting. To fix this:
sudo scutil --set HostName 'not-Coltons-Air'