From owner-freebsd-questions Sun Jan 18 02:14:35 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA01177 for questions-outgoing; Sun, 18 Jan 1998 02:14:35 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from andrsn.stanford.edu (root@andrsn.Stanford.EDU [36.33.0.163]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id CAA01118 for ; Sun, 18 Jan 1998 02:14:18 -0800 (PST) (envelope-from andrsn@andrsn.stanford.edu) Received: from localhost (andrsn@localhost.stanford.edu [127.0.0.1]) by andrsn.stanford.edu (8.8.8/8.6.12) with SMTP id RAA12976; Sat, 17 Jan 1998 17:15:21 -0800 (PST) Date: Sat, 17 Jan 1998 17:15:20 -0800 (PST) From: Annelise Anderson To: Frank Griffith cc: freebsd-questions@FreeBSD.ORG Subject: Re: Prompts In-Reply-To: <199801151522.IAA03272@idfw.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk On Thu, 15 Jan 1998, Frank Griffith wrote: > I have been looking at some of the docs and several > e-mail responses. The % prompt keeps showing up. > However, in using FreeBSD as root I only see a # prompt > and when logged in as other user I see the $ prompt. > > How do I get to the % prompt? > type echo $SHELL to find out which shell you've got If you're using csh, I would suggest installing the port for tcsh, which is an enhanced csh. The man page has information, then, on how to change the prompt. I like % too, because $ reminds me of the VAX and > reminds me of dos. But I want the prompt to switch to # when I become root. So in .tcshrc, which runs when the shell starts, I have if ($?prompt) then set prompt = "%m %h %t %~ %# " set promptchars = "%#" which does what I want as well as as few other things. Annelise