Why does terminal have "nintendo 3ds" after login?
MacBook Pro (15-inch Mid 2010), Mac OS X (10.7.3)
Do you have a Nintendo 3ds? Is it on your network?
I don't own one. I am on a wi-fi network at the college I attend, but I didn't think that would have anything to do with terminal, since it isn't "connected" to my computer.
Terminal displays the name of your host. Look in the System Preferences in the Sharing icon. The computer name must have picked up an IP address and hostname from a Nintendo DS3 that is on a local wireless network.
You can edit the name to reset it.
The Terminal runs the 'bash' shell. The bash shell default command line prompt uses \h in the PS1 shell variable which tells bash to display the host name.
bash does a reverse DNS lookup using your nn.nn.nn.nn IP address to get the host name. This effectively causes the Mac to ask your local DNS server if there is a DNS name associated with your nn.nn.nn.nn IP address. If the DNS server does not have an answer, Mac OS X will get the name from System Preferneces -> Sharing -> Computer name.
HOWEVER, if the DNS server says, YES, I have a name for nn.nn.nn.nn, then that is what gets displayed by bash as your computer name.
You are using a College network where DHCP is going to reuse IP addresses from day to day, so somewhere in the recent past, someone was using their Nintendo DS3 and it managed to tell the local router/DNS server it had a name, and that was remembered. Then today, you connected your Mac, and fired up Terminal, and bash asked for your name, and the rouer/DNS server said "Sure, we have a name for that address", and bash displayed "Nintendo DS3".
If you want to always control your Terminal prompt, then in your .bash_profile (you will need to create it), add
PS1="the name you want> "
Or you can get fancy and us something like:
PS1="$(networksetup -getcomputername)> "
Why does terminal have "nintendo 3ds" after login?