This is the mail archive of the
cygwin
mailing list for the Cygwin project.
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: "cygwin at cygwin dot com" <cygwin at cygwin dot com>
- Date: Sun, 19 Jan 2020 01:16:10 +0000
- Subject: 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=Kt115u0ikR1JifwGCTjqwTFNNaMwc0rgO2jT7MDaLDE=; b=Jw7AUXTcqBb3xD+6usI7mmPfHfthHHg0WCQgiPtPTHTvg9MtSPhF4YyzBwXSRnRhtcQ6OlydK/cyGJtsiLVcN0GFqOQ/1/Dab+pJugW3fUln/fChNzwZafXKnRGWZYNkr1rFaOr8IoBilJlRHJK9caGdoqqMXDAmYUINbxg4QWxnmRopQbznJfVFg89achLNqchrvvCOmfb5Oochx7wI8RyE7g6HCfcblWcWt1uLYiW3+1fPQjWwDPiE+bZVoPI6/Hy4rVNRU7ZtGPHp0qRCjvKttXICTKyiQwTAlYyfsu5VPMolqWGvm9/8gb+BtHKuJXSMt9Fg3cxAQuUx0Mn+vw==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lkXyA4wkSPs4BRY3SR+Z2TfuBVLKfMeG2KhPiU5Fbhmn9qCogRSfqVbIObW/GBd5Y17rpnjOjIzig11iqB9/u1PcExj4TBfu5qBMVlirp6XtFidECd10Ktc+ax7Y7FspNLsFZ5wpZSnDxSZVxfWt51UPdywHMx2BBQIsSKPOPYgt6OOEbcu2WvRNzfCsS3fZLHmZy79BMLa3ElDQM3CQ/4sn6kI2hcW4YFrns4/2U7qHj2nTClxoUglJilXL7Pn5t+p4Q7KX6W+gd+YvBWnlkRsCIcGGKSKmIECzj5FwLwjuPiDJYrg+k01i50j4pCHjhl2yAgbElERFL1XhlLXYxg==
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