Set window title

Matthew O. Persico persicom@acedsl.com
Tue Sep 25 17:50:00 GMT 2001


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/



More information about the Cygwin mailing list