delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/09/25/20:50:33

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <3BB127B1.5010401@acedsl.com>
Date: Tue, 25 Sep 2001 20:56:17 -0400
From: "Matthew O. Persico" <persicom AT acedsl DOT com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.2) Gecko/20010726 Netscape6/6.1
X-Accept-Language: en-us
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Set window title
References: <20010925203731 DOT B322 AT mainframe> <3BB0D1CB DOT A32C9F7 AT cportcorp DOT com> <20010925210429 DOT A551 AT mainframe>

Martin Jerabek wrote:

> On Tue, Sep 25, 2001 at 02:49:47PM -0400, Peter Buckley wrote:
> 
>>This question showed up just last week IIRC.
>>
> 


I put/found this in my /etc/profile file. The first line is for the 
terminal. The rest is for the prompt, with colors.


if [ -z $DISPLAY ]
then
  export PS1='\[\033]0;\w\007
\033[32m\]\u@\h \[\033[33m\w\033[0m\]
[\#]$ '
else
  export PS1='\u@\h \w
[\#]$ '
fi
cd "$HOME"



-- 
Matthew O. Persico

http://www.acecape.com/dsl
AceDSL:The best ADSL in Verizon area


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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