Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@sourceware.cygnus.com>
List-Subscribe: <mailto:cygwin-subscribe@sourceware.cygnus.com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin@sourceware.cygnus.com>
List-Help: <mailto:cygwin-help@sourceware.cygnus.com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner@sourceware.cygnus.com
Delivered-To: mailing list cygwin@sourceware.cygnus.com
Message-ID: <37E584CB.8CBE0AC0@ctam.com.au>
Date: Mon, 20 Sep 1999 10:50:19 +1000
From: Brendan Simon <bsimon@ctam.com.au>
Reply-To: bsimon@ctam.com.au
Organization: CTAM Pty Ltd
X-Mailer: Mozilla 4.61 [en] (X11; I; Linux 2.0.36 i586)
X-Accept-Language: en
MIME-Version: 1.0
To: Leonardo Pedrosa <lion@sti.com.br>
CC: cygwin@sourceware.cygnus.com
Subject: Re: How to set the prompt?
References: <3422B7D8.A5CD0CE1@sti.com.br>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Leonardo Pedrosa wrote:

> Hello, I'm starting with the cygwin recently and cause my lack of
> experience I have this basic/fool question.
> When a I run Cygnus form Windows98 the prompt stay fixed at BASH.EXE
> 2.02$
> How can I set it like the "prompt $p$g" command of MS-DOS ?
>
> Thank you.
> Leonard
>
> --
> Want to unsubscribe from this list?
> Send a message to cygwin-unsubscribe@sourceware.cygnus.com

I have the following in my .bashrc file.

export PS1="[\h:\w]$ "

This sets the first prompt to the computers hostname followed by the
working directory.  All this is surrounded by square brackets and a
dollar symbol.  This is similar to the RedHat linux prompt.  The "\h"
means host and the "\w" means working directory.  You need to get some
bash documentation.  "man bash" should do it if you have a linux machine
or the documenation stuff installed for your cygwin environment.

If your HOME variable is not set you will probably need to type "source
.bashrc".
Just try export PS1="[\w]$ " at the command prompt to test it.

Brendan Simon.



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

