setting default xterm colors
Carlo Florendo
list-subscriber@hq.astra.ph
Thu Apr 28 04:18:00 GMT 2005
Alexander Gottwald wrote:
>On Wed, 27 Apr 2005, Carlo Florendo wrote:
>
>
>
>>I've got a follow-up question: I run startx and an xterm fires up.
>>That's no problem. When I invoke another xterm from the xterm that
>>just started, I now get the proper background and foreground colors but
>>`ls -l' does not display color coded directory entries anymore on the
>>newly invoked xterm (It does display the colors from the xterm invoked
>>by startx, though). Everything would work fine if I invoke `xterm -e
>>/bin/bash --login -i' since I've aliased ls to `ls --color=auto' in my
>>bash configuration file. Is there any way to make my xterm understand
>>`ls --color-auto' without loading the shell configuration files (since
>>it's from my bash configuration that I set `ls --color-auto')?
>>
>>
>
>No that I know of. But bash knows two kinds of configuration files.
>
>~/.bashrc and ~/.profile (see man bash for details). .profile is read
>when invoked with --login otherwise .bashrc. you can put the alias command
>to .bashrc and source that from .profile too
>
>==~/.bashrc==
>alias ls=ls --color=auto
>
>==~/.profile==
>if test -f ~/.bashrc; then
> . ~/.bashrc
>fi
>
>
Thank you for the insights, Alexander!
With much appreiciation,
Carlo
--
Carlo Florendo
Astra Philippines Inc.
www.astra.ph
More information about the Cygwin-xfree
mailing list