* with LS_COLORS customized, ls's color scheme reverts when cd'ing to directories not under HOME
@ 2020-01-19 1:16 R Steiger
2020-01-19 6:41 ` Lee
0 siblings, 1 reply; 3+ messages in thread
From: R Steiger @ 2020-01-19 1:16 UTC (permalink / raw)
To: cygwin
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.
Incanting 'ls -l' in ~ yields a perfectly readable listing. However, as soon as I cd to some directory not under ~, the scheme reverts to the released one. I've been unable to find any posts describing any such problem, and am wondering if cd might be invoking some subcutaneous hook that could be messing with LS_COLORS in some way (BTW, in any of the color-reverted directories, LS_COLORS shows the updated "di=01;35" binding, not the released one).
Thanks in advance for any advice/workarounds/fixes.
-rjs
--
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: with LS_COLORS customized, ls's color scheme reverts when cd'ing to directories not under HOME
2020-01-19 1:16 with LS_COLORS customized, ls's color scheme reverts when cd'ing to directories not under HOME R Steiger
@ 2020-01-19 6:41 ` Lee
2020-01-19 7:00 ` R Steiger
0 siblings, 1 reply; 3+ messages in thread
From: Lee @ 2020-01-19 6:41 UTC (permalink / raw)
To: cygwin
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: with LS_COLORS customized, ls's color scheme reverts when cd'ing to directories not under HOME
2020-01-19 6:41 ` Lee
@ 2020-01-19 7:00 ` R Steiger
0 siblings, 0 replies; 3+ messages in thread
From: R Steiger @ 2020-01-19 7:00 UTC (permalink / raw)
To: Lee, cygwin
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="utf-8", Size: 1810 bytes --]
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
\0ТÒÐÐ¥\a&ö&ÆVÒ\a&W\x06÷'G3¢\x02\x02\x02\x02\x02\x02\x06GG\x03¢òö7wvâæ6öÒ÷\a&ö&ÆV×2æFÖÀФd\x15\x13¢\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x06GG\x03¢òö7wvâæ6öÒöf\x17\x12ðФFö7VÖVçF\x17Föã¢\x02\x02\x02\x02\x02\x02\x02\x02\x06GG\x03¢òö7wvâæ6öÒöFö72æFÖÀÐ¥Vç7V'67&&R\x06æfó¢\x02\x02\x02\x02\x02\x06GG\x03¢òö7wvâæ6öÒöÖÂò7Vç7V'67&&R×6×\x06ÆPÐ Ð
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-01-19 7:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-19 1:16 with LS_COLORS customized, ls's color scheme reverts when cd'ing to directories not under HOME R Steiger
2020-01-19 6:41 ` Lee
2020-01-19 7:00 ` R Steiger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).