Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Jan 1998 18:22:21 +1030
From:      Greg Lehey <grog@lemis.com>
To:        Frank Griffith <frankg@idfw.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Prompts
Message-ID:  <19980117182221.37408@lemis.com>
In-Reply-To: <199801151522.IAA03272@idfw.com>; from Frank Griffith on Thu, Jan 15, 1998 at 09:25:33AM -0600
References:  <199801151522.IAA03272@idfw.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jan 15, 1998 at 09:25:33AM -0600, 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?

That depends on why you want it.

The simple answer is:

Enter 

  $ PS1='% '
  %

The prompts you get come from the Bourne Shell.  The % prompt is the
default prompt for the C shell.  Unless you have a good reason to
prefer the C shell (the prompt is obviously not a good reason), stick
with the Bourne shell or one of its derivatives (bash (my favourite),
zsh or pdksh).  If you really want csh, you can use 'chsh' to change
it.

Greg




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980117182221.37408>