Child pages
  • OS X annoyances
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

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]\\$ "
  • No labels