This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: how to change the prompt in Cygwin
- From: Greg Chicares <gchicares at sbcglobal dot net>
- To: cygwin at cygwin dot com
- Date: Sat, 05 Jan 2008 05:23:53 +0000
- Subject: Re: how to change the prompt in Cygwin
- References: <73b111e10801042021q40fc54e4ydc8d67b7fc687035@mail.gmail.com> <73b111e10801042024r792293c8w12919b3528285eec@mail.gmail.com> <73b111e10801042026yae98af8m9e37e09a74cadb37@mail.gmail.com>
On 2008-01-05 04:26Z, sun wrote:
>
> Could you please help on how to remove the path display in my Cygwin?
> It looks like following and I don't like it:
>
> user@mymachien /cygdrive/c/Documents and Settings/Desktop
> $
>
> I want to change to
>
> user@mymachien$
Add a line like
export PS1='\u$'
to file '~/.bashrc'. If you want to customize it more, do
man bash
and look for special characters used in PS1.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/