This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: with LS_COLORS customized, ls's color scheme reverts when cd'ing to directories not under HOME
- From: R Steiger <rsteiger at ensemblesoft dot net>
- To: Lee <ler762 at gmail dot com>, "cygwin at cygwin dot com" <cygwin at cygwin dot com>
- Date: Sun, 19 Jan 2020 07:00:03 +0000
- Subject: RE: with LS_COLORS customized, ls's color scheme reverts when cd'ing to directories not under HOME
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ensemblesoft.net; dmarc=pass action=none header.from=ensemblesoft.net; dkim=pass header.d=ensemblesoft.net; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=XKlMAVx9ehkXTBMeCjp1RYKHSe01qV19v2qXqLjd3Tk=; b=eOz+VbzN0gcFqlN1J5xuluyL+pu5tR6ItNT5+nUBHHR6bpCnXieX0eIdPN2GjbMWnysIbA/Il/mr39OElFFxtH8iss/KN20xtv2LCw/OZzIPvm4uze/C6AfwgvI2Sl0DzcPUEUQZ57L9bJf9KUSWbQuo/hu2TbzdCrJfzzlXLNbPPJnf7zP4gh132NGc4ftJcPWkv8HoUR03qzEH7bTLHa7mCzKwy20LZpGfJUFT5D/5AjPR3SAiQCwGAI2hAVWFolApX2P7lbryTf+bdbNuP6iioHdyYZVsoSQEzgtAHRO7GMGJcX5qZn9eTi83yLYewm5NL2xBz5DYD52N3Afd4g==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RYYi06SvZkTLkUfxwsL3FMNDTZCN8PvBgE7n1jE7L5Di3dzUHX6F8olI+tHUP0kggeTBqGReycfBLBiwtqPkzWxGXmU+zqlxNyhN0nl1BKX0NhR/zhh8Yn898qrQ5mu4jjzHXoCoNCGOPSvJC6DhQyBRZW4AWTSTisNJgyI9ZxmNObfYqYkUR/hoOZnrh0P7HZSjIxbPlo175FuuEGDbkF2giC7G2H3QQ8OC5D83L8a5DPBbhun6jMAJkiDXakZ9R49Uu7woM9hdY+MeMGqYjubPeGtj5eVW/0iaxwzgUxR9qHs7FuHvzAfU4lhTLNqDtF2d8WdmMSCKrvyMpWM5Fg==
- References: <SN6PR08MB401482CA129E62400ACE9236B7330@SN6PR08MB4014.namprd08.prod.outlook.com> <CAD8GWsvPiNDbo9tF6AaUGGHvFadbkVFoY-0uWaenNah6024xQQ@mail.gmail.com>
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