Terminal Question

Discussion in 'Mac Basics and Help' started by Jonnebob, Dec 18, 2008.

  1. Jonnebob macrumors newbie

    Joined:
    Dec 18, 2008
    #1
    Where does terminal / OS x pick this up from?

    [​IMG]

    It used to display 'JonLaptop' the name of my laptop, but for some reason it doesnt any longer!

    EDIT: To expand a little more.... How does OS X decide what goes there automatically? The reason I'm asking is that I'm using synergy and with OS X seemingly changing the terminal name on random I was always having problems connecting to my mac from my pc.

    Code:
    section: screens
    	JonLaptop:
    	JONBPC:
    		meta = alt 
    
    end
    That was my initial set up and it all worked fine. Over the past couple of weeks i've had to add this as a result of the different names that appear in the terminal screen. Is this normal? Is there anyway for me to get it to stick to one?

    Code:
    section: aliases
    	JonLaptop:#As set in sharing preference pane
    		JonLaptop.lan #As set in sharing preference pane
    		JonLaptop.local #As set in sharing preference pane
    		Unknown-00-19-e3-37-8b-0c.lan #Macbook mac address
    		Unknown-00-19-e3-37-8b-0c #As set in sharing preference pane
    		192.168.1.108 #Static IP on my lan
    		Jonny #SMB Sharing name
    		Jonny.lan #SMB Sharing name
    end
    Also what's with the .lan and .local bits?
     
  2. stomer macrumors 6502a

    Joined:
    Apr 2, 2007
    Location:
    Leeds, UK
    #2
    You need to redefine the hostname. This is configured in the Sharing preferences pane.

    To change your command prompt check out bash documentation for the PS enironmental variable.
     

Share This Page