Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 May 1998 11:45:41 +0930
From:      Greg Lehey <grog@lemis.com>
To:        Alex Heiphetz <heiphetz@cvzoom.net>, freebsd-questions@FreeBSD.ORG
Subject:   Re: prompt customization
Message-ID:  <19980520114541.A20476@freebie.lemis.com>
In-Reply-To: <3.0.5.32.19980519203929.009d95b0@cvzoom.net>; from Alex Heiphetz on Tue, May 19, 1998 at 08:39:29PM -0400
References:  <3.0.5.32.19980519203929.009d95b0@cvzoom.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 19 May 1998 at 20:39:29 -0400, Alex Heiphetz wrote:
> Thank you for the great product and much help
> onmy previous question.
> Now I have a really small one: I'm trying to
> customize prompt to show prompt number. I added
>
> PS1="(\#) $"
> export PS1
>
> to /etc/profile, but as prompt I get *literal*
>
> (\#) $
>
> instead of something like
>
> (24) $
>
> Where did I screw up?

You used the wrong shell.   I'd guess it's the Bourne shell sh.  bash
(the Bourne again shell) can do this.

> BTW, what is the way to change root prompt in the same manner?

Exactly the same thing.

Greg
--
See complete headers for address and phone numbers
finger grog@lemis.com for PGP public key

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



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