delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/01/05/00:24:53

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
X-YMail-OSG: 2KgZG1QVM1mF.lYcqLYhc.Z8E0eAAyPuLNv57gNK_EPKRIeV
Message-ID: <477F1469.6020208@sbcglobal.net>
Date: Sat, 05 Jan 2008 05:23:53 +0000
From: Greg Chicares <gchicares AT sbcglobal DOT net>
User-Agent: Thunderbird 2.0.0.9 (Windows/20071031)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: how to change the prompt in Cygwin
References: <73b111e10801042021q40fc54e4ydc8d67b7fc687035 AT mail DOT gmail DOT com> <73b111e10801042024r792293c8w12919b3528285eec AT mail DOT gmail DOT com> <73b111e10801042026yae98af8m9e37e09a74cadb37 AT mail DOT gmail DOT com>
In-Reply-To: <73b111e10801042026yae98af8m9e37e09a74cadb37@mail.gmail.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT 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 AT mymachien /cygdrive/c/Documents and Settings/Desktop
> $
> 
> I want to change to
> 
> user AT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019