Sign In/My Account | View Cart  

advertisement

AddThis Social Bookmark Button

Weblog:   Changing your bash prompt hostname in Tiger
Subject:   just set your hostname in Sys Prefs
Date:   2005-10-27 02:25:43
From:   carlj7

In System Preferences, your hostname can be set in the Sharing panel.


Anyhow, since it's apparently cool to show off your bash prompt, here's mine:


export prompt="%{\033[30;43m%}%~ %%%{\033[0m%} "


Which yields a bright green "[cjohnson@albook:~/tmp]$ " followed by darker green input text.

Full Threads Oldest First

Showing messages 1 through 2 of 2.

  • just set your hostname in Sys Prefs
    2006-01-03 15:22:35  random_ [View]

    My mac host name is all messed up I think

    1. the browser is unable to point to it
    2. terminal keeps an old one ie if i made a name1 then changed it to name2, terminal keeps name1 and does not change

    i'm using dsl with dhcp

    what I find odd is i have the HD partitioned and the local host name works on one partitoned but not the other

    is there someplace I can troubleshoot this ?
  • Robert Daeley photo just set your hostname in Sys Prefs
    2005-10-27 03:06:15  Robert Daeley | O'Reilly Blogger [View]

    In System Preferences, your hostname can be set in the Sharing panel.

    While that will work, if you get onto a DHCP network the default prompt in a new window will instead show username@dhcp.xxx.xx.xx.x or some variation on that.

Showing messages 1 through 2 of 2.