From owner-freebsd-questions Sun Mar 24 13:52:59 2002 Delivered-To: freebsd-questions@freebsd.org Received: from russian-caravan.cloud9.net (russian-caravan.cloud9.net [168.100.1.4]) by hub.freebsd.org (Postfix) with ESMTP id 9CEA537B400 for ; Sun, 24 Mar 2002 13:52:56 -0800 (PST) Received: from earl-grey.cloud9.net (earl-grey.cloud9.net [168.100.1.1]) by russian-caravan.cloud9.net (Postfix) with ESMTP id 4575328E12; Sun, 24 Mar 2002 16:52:56 -0500 (EST) Date: Sun, 24 Mar 2002 16:52:56 -0500 (EST) From: Peter Leftwich X-X-Sender: To: Aaron Siegel Cc: FreeBSD Questions Subject: Re: Promt In-Reply-To: <3C9E1AE8.1000203@attbi.com> Message-ID: <20020324164739.I50035-100000@earl-grey.cloud9.net> Organization: Video2Video Services - http://Www.Video2Video.Com MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, 24 Mar 2002, Aaron Siegel wrote: > Hello - Add the line > hostname="" > in the rc.conf file. You can use the hostname as root to change it at the prompt. > Andrew Boothman wrote: > >> Hi, I use to login as root on "Alt+F1" and as user on "Alt+F2". I connect the internet from the user. Whole of a sudden, sometimes, the root prompt is changed from an ordinary # to "ppp-212-#" Why is that? From where does the prompt get it's name? > > Its sounds like your ISP might be resetting your hostname when you connect to the net. I'm not sure, but try a 'host ' and see if it returns ppp-212-..... > > If that's the case, you can tell dhclient to override the hostname setting, see man dhclient or ask again on the list. > > Andrew. (By the way you misspelled prompt.) :) If your post is because you just want your prompt to be "#" then read up on sh if you use that as your shell and set your prompt to BarneyPurpleDinosaur if you wish *grins* I use tcsh and it has a command "set prompt = 'whatever you including bold/unbold/command#/time etc'" (man tcsh) The difference in prompts is because sometimes you are online and other times offline, it would seem. -- Peter Leftwich President & Founder Video2Video Services Box 13692, La Jolla, CA, 92039 USA +1-413-403-9555 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message