This is the mail archive of the
mailing list for the Cygwin project.
RE: Use of PROMPTING
- From: "Robert Mark Bram" <relaxedrob at optushome dot com dot au>
- To: "Cygwin" <cygwin at cygwin dot com>, "Denis Sarrazin" <dsarrazin at cyberus dot ca>
- Date: Wed, 12 Jun 2002 02:11:52 +1000
- Subject: RE: Use of PROMPTING
I found this page which helped (after a lot of working it out by myself
And you can learn more about changing ls --color here:
I am having a go at this now myself!
BTW - I sorted my original color problem. It seems I just had to close the
window and re-open and the color settings I had changed through properties
Thanks for your tips about color in vim too!
> -----Original Message-----
> From: firstname.lastname@example.org [mailto:email@example.com]On Behalf
> Of Denis Sarrazin
> Sent: Wednesday, 12 June 2002 12:45 AM
> To: Cygwin
> Subject: Re: Use of PROMPTING
> 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.
> On Tue, 11 Jun 2002 22:26:56 +1000, "Robert Mark Bram"
> <firstname.lastname@example.org> 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!
> 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/
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html