UPDATE ......From Tuesday 8 April 2025 we have changed the way that Single Sign-on works on this wiki. Please see here for more information:
Update
By default the Mac OSX terminal window will show the prompt using the hostname - which can be anything, assigned from DHCP.
To have it display the name as configured in the Sharing control panel, edit /etc/bashrc
and replace PS1 with this:
PS1="[\u@:$(scutil --get ComputerName) \W]\\$ "