Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com From: Denis Sarrazin To: "Cygwin" Subject: Re: Use of PROMPTING Date: Tue, 11 Jun 2002 10:45:08 -0400 Message-ID: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id g5BFENQ09097 If all you want is to change your prompt colors, then you can do this by modifying the text file /etc/profile. You can change the PS1 prompt line that it contains to what you want. For example, I changed it to the following (to make things brighter, mainly): export PS1='\[\033]0;\w\007 \033[1;32m\]\u@\h \[\033[1;33m\w\033[1;37m\] This won't change colors for much of anything else than the prompt (and in part for ls --color). Different applications can also have their colors customized (each application seem to support its own method). For example, for vim, I copied the file C:\cygwin\usr\share\vim\vim61\gvimrc_example.vim to my home directory and renamed it to .vimrc (this enabled a lot of things including syntax highlighting). Additionally, I changed the colors it uses by adding this line in this .vimrc: colorscheme denis A list of valid color schemes can be found in the C:\cygwin\usr\share\vim\vim61\colors directory. I created my own colorscheme by making a copy of the zellner.vim and renaming it to denis.vim (then modifying that copy until it looked good on my machine). The only color that I've not been able to modify (and would like to) is the default color used by ls to display directories (with the --color option). It is in a light blue which is hard to read. I tried different things but eventually gave up (I think I read about a bug in one of the messages as well but I don't recall exactly). It is usable as is so for now, it will do (until I can find more free time to play with colors :-). Disclaimer: I'm just a beginner at cygwin/Linux so for everything above, there may well be better ways of doing things. -D On Tue, 11 Jun 2002 22:26:56 +1000, "Robert Mark Bram" wrote: >Howdy all! > >I am running Cygwin on W2K and I would like to know how to change my colors. >I changed them in the properties section of the consols but it turns out >this is only Windows settings and Cygwin's Bash goes on and uses its own >colors irrespective. > >I had a look at man bash and found the section on PROMPTING. I didn't see >any information on changing colors but I saw some old archive messages that >mention this is the way to change them. > >Can anyone tell me if this is the way to change colors - and if so how? > >Should I set PS1 and PS2 in Cygwin.bat as an argument to bash: >bash --login -i > >Thanks for any advice! > >Rob > >:) >:-} >;-> -- 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/