with LS_COLORS customized, ls's color scheme reverts when cd'ing to directories not under HOME

R Steiger rsteiger@ensemblesoft.net
Sun Jan 19 07:00:00 GMT 2020


Lee,

That fixed it!  

Many thanks!

-rjs

-----Original Message-----
From: cygwin-owner@cygwin.com <cygwin-owner@cygwin.com> On Behalf Of Lee
Sent: Saturday, January 18, 2020 10:42 PM
To: cygwin@cygwin.com
Subject: Re: with LS_COLORS customized, ls's color scheme reverts when cd'ing to directories not under HOME

On 1/18/20, R Steiger  wrote:
> The directory color assignments for dracula, flat-ui, and several 
> other themes render 'ls -l' listings very hard to read (foreground and 
> background are nearby blue-green shades for "d" entries).  FWIW, 
> currently theme is "dracula", but am getting same results for flat-ui, etc.
>
> I've tried various ways to customize colors, even saving LS_COLORS to 
> a ~/.dir_colors" file, tweaking "DIR 01;31" -> DIR 01;35", and adding 
> "eval `dircolors ~/.dir_colors`" on the last line of .bashrc.

Your eval quoting is slightly different than mine - maybe that's it?

if [ -f "${HOME}/.dircolors" ] ; then
  eval "`dircolors -b ${HOME}/.dircolors`"

  alias ls='ls --color=auto -p --append-exe'
  #   --color=auto  colorize ls listing
  #   -p            add "/" to directory names
  #   --append-exe  append .exe if cygwin magic was needed

  alias grep='grep --color=auto'
  alias fgrep='fgrep --color=auto'
  alias egrep='egrep --color=auto'
fi

Regards,
Lee

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

 ТÒÐÐ¥&ö&ÆVÒ&W÷'G3¢‡GG¢òö7–wv–âæ6öÒ÷&ö&ÆV×2æ‡FÖÀФd¢‡GG¢òö7–wv–âæ6öÒöfðФFö7VÖVçFF–ö㢇GG¢òö7–wv–âæ6öÒöFö72æ‡FÖÀÐ¥Vç7V'67&–&R–æfó¢‡GG¢òö7–wv–âæ6öÒöÖÂò7Vç7V'67&–&R×6–×ÆPРÐ


More information about the Cygwin mailing list