From unknown Sat Aug 16 16:00:59 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#54521 <54521@debbugs.gnu.org> To: bug#54521 <54521@debbugs.gnu.org> Subject: Status: [PATCH] dircolors: colorize backup files with bright black Reply-To: bug#54521 <54521@debbugs.gnu.org> Date: Sat, 16 Aug 2025 23:00:59 +0000 retitle 54521 [PATCH] dircolors: colorize backup files with bright black reassign 54521 coreutils submitter 54521 Ville Skytt=C3=A4 severity 54521 normal tag 54521 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 22 14:24:34 2022 Received: (at submit) by debbugs.gnu.org; 22 Mar 2022 18:24:34 +0000 Received: from localhost ([127.0.0.1]:41832 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nWjBK-0000jh-IB for submit@debbugs.gnu.org; Tue, 22 Mar 2022 14:24:34 -0400 Received: from lists.gnu.org ([209.51.188.17]:41862) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nWjBJ-0000jZ-IJ for submit@debbugs.gnu.org; Tue, 22 Mar 2022 14:24:33 -0400 Received: from eggs.gnu.org ([209.51.188.92]:53138) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nWjBJ-0006ZZ-8L for bug-coreutils@gnu.org; Tue, 22 Mar 2022 14:24:33 -0400 Received: from mail-lf1-f51.google.com ([209.85.167.51]:45672) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nWjBH-0004Es-Di for bug-coreutils@gnu.org; Tue, 22 Mar 2022 14:24:32 -0400 Received: by mail-lf1-f51.google.com with SMTP id l20so31154674lfg.12 for ; Tue, 22 Mar 2022 11:24:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=9I/sHZnilNsPzccPJQl0+qRmNe6wkCSfe1UwREPacMg=; b=amdn+FgKD1mY3Q608rzlfdetD74dOhx9qXCLwLBOWma4M6iupjsj3ECmWqRg7FFgJl /QJ/PBJsvGBaWSOxNnLblPvZAK7XcLjSJzhRmZQ/Q/J/f2j0A3e6iBWkoAwIRqEkQ+5L RjGuLmULXkWeIHkOgR/iL6YYHYWAI4kIk1tbFsGg8K7vEqtbiXqhOVSUkZkVhs80VCTE NKdnew8V+hfH8Nr7scmzqxQL8T7Ri0ZlqDWevTUUn7R0DimemcwWXL8i4/TUST6ji1jT Wn4jdcWQI8pyFlNZpsByPg12+jmodCv+GiC41IyKsiBXa4jDeRql4qLpxXAHos2HERdL z3AA== X-Gm-Message-State: AOAM531mYALTJHp/Q0n8tioavWb06mKNVuGEiKIawz+RcZkNN9j3FQJb rjarxQSri/NbrP1s7nTkSayuk5903gI= X-Google-Smtp-Source: ABdhPJy3vLWXFRi+KJHFtXEWmC3RlSMM5Vr/i3NnHGZ/oZ/ONf/KlSyWFptUhgRcyChn0nyNk6wHqw== X-Received: by 2002:a05:6512:2214:b0:44a:348a:d72 with SMTP id h20-20020a056512221400b0044a348a0d72mr5274417lfu.416.1647973468501; Tue, 22 Mar 2022 11:24:28 -0700 (PDT) Received: from uncleman.upcloud.com (dyjc2gkk-x5lkn172g7my-4.rev.dnainternet.fi. [2001:14bb:1c5:62a1:1f9e:5285:d776:2ed4]) by smtp.gmail.com with ESMTPSA id p17-20020a056512313100b0044a34f4b4b5sm550884lfd.268.2022.03.22.11.24.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Mar 2022 11:24:27 -0700 (PDT) From: =?UTF-8?q?Ville=20Skytt=C3=A4?= To: bug-coreutils@gnu.org Subject: [PATCH] dircolors: colorize backup files with bright black Date: Tue, 22 Mar 2022 20:24:27 +0200 Message-Id: <20220322182427.1040186-1-ville.skytta@iki.fi> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=209.85.167.51; envelope-from=vskytta@gmail.com; helo=mail-lf1-f51.google.com X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -0.8 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.8 (-) Useful as it makes them stand out less than non-backup files. --- src/dircolors.hin | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/dircolors.hin b/src/dircolors.hin index 673835201..6dc5a2d74 100644 --- a/src/dircolors.hin +++ b/src/dircolors.hin @@ -211,5 +211,24 @@ EXEC 01;32 .spx 00;36 .xspf 00;36 +# backup files +*~ 00;90 +*# 00;90 +.bak 00;90 +.old 00;90 +.orig 00;90 +.part 00;90 +.rej 00;90 +.swp 00;90 +.tmp 00;90 +.dpkg-dist 00;90 +.dpkg-old 00;90 +.ucf-dist 00;90 +.ucf-new 00;90 +.ucf-old 00;90 +.rpmnew 00;90 +.rpmorig 00;90 +.rpmsave 00;90 + # Subsequent TERM or COLORTERM entries, can be used to add / override # config specific to those matching environment variables. -- 2.25.1 From debbugs-submit-bounces@debbugs.gnu.org Wed Mar 23 19:54:06 2022 Received: (at 54521) by debbugs.gnu.org; 23 Mar 2022 23:54:06 +0000 Received: from localhost ([127.0.0.1]:46333 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nXAnm-00014Q-LT for submit@debbugs.gnu.org; Wed, 23 Mar 2022 19:54:06 -0400 Received: from mail-wr1-f43.google.com ([209.85.221.43]:39751) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nXAnl-00013v-0j for 54521@debbugs.gnu.org; Wed, 23 Mar 2022 19:54:05 -0400 Received: by mail-wr1-f43.google.com with SMTP id j18so4328044wrd.6 for <54521@debbugs.gnu.org>; Wed, 23 Mar 2022 16:54:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:message-id:date:mime-version:user-agent:subject :content-language:to:references:from:in-reply-to :content-transfer-encoding; bh=+idPA9+hfEH1nycwq5NKC8x0rwGw1DlW5lmZ5lse2dA=; b=Y1JU0oXh9lBQqRPVWGilgdUcykofw8RifOSBd9oarXbVPfHWFiwtWQKSOQDrDkaVct S6pw7BTVDbTLTwnH+xeU3MGM7R8BHpUAajBMUJZEYwj+N9gGN6HbZshXHwswlTHgkJAF oHx3b8paDQitUl2eTSMiUFX+wJXXSOCAgPoyeMr/DO4hI7IECu/U6e+QOj84YxEEhTQZ jP0Ep0NvyaMlqUpvXXIlNrtg8lxVShxmP0723rPdGyYzT1MM7Okmkku/hDB7WWQTnZVF MEQmfbl48N7eTrhhBZJxgccXw6Z+Jrbe4OqYYBwi5Ce5gVsD9LzSf/bMNCiJbjHH00Fs wsPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:message-id:date:mime-version:user-agent :subject:content-language:to:references:from:in-reply-to :content-transfer-encoding; bh=+idPA9+hfEH1nycwq5NKC8x0rwGw1DlW5lmZ5lse2dA=; b=Z6J+lCDiVjYidGU9Ox879L9ZMHE2GaWuqxF6nsTXPa5smVR2TloR42rCxyyhZVgFGP SXqCEQMez/AdiN4q7KTee4dlDWLift3RrAQ5hRzGUPxZ0ihI/jc4pl3r1QgKmGdiJFsy uz+NtkR0Ms8aZmm+WbEcLc/ITwhJiJaW29A2JQIM5nzvjGPpRfpRUp6dqakOsfYdZA01 A3RoGOQOLR2oDisSZ/IHHmeJgNFhCgKitkdWYNdOi4d2Ng5D6cjSpDJ4a7cF7NKRGVgd 5DBa5th8Na7CuDzdBARiSlGjPSeBOFy5eRL8hzT//A19z1EKX+Hp8WXDKSl7NDIn9lUN k2Gw== X-Gm-Message-State: AOAM532os4aYFVXsNOaTOYkcCCs9yg7S5tZsEqPVHVnjDiOoU5P2/CFe eWs4VvnZ52Qix1MNih7lu0w= X-Google-Smtp-Source: ABdhPJxLaemDXIV23ofLLxLfFxz1JpvWpjIvhnvq4pHBtpXJTCzsfjJSDForzZM12Bn5ywoyl7zvOw== X-Received: by 2002:a05:6000:154c:b0:203:d46b:ede4 with SMTP id 12-20020a056000154c00b00203d46bede4mr2164432wry.501.1648079638902; Wed, 23 Mar 2022 16:53:58 -0700 (PDT) Received: from [192.168.1.9] (95-44-90-175-dynamic.agg2.lod.rsl-rtd.eircom.net. [95.44.90.175]) by smtp.googlemail.com with ESMTPSA id r14-20020a7bc08e000000b0038ca55f9bcasm4846507wmh.42.2022.03.23.16.53.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 23 Mar 2022 16:53:58 -0700 (PDT) Message-ID: <4c49d6e6-e521-b21b-2171-e784a607e38b@draigBrady.com> Date: Wed, 23 Mar 2022 23:53:57 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:97.0) Gecko/20100101 Thunderbird/97.0 Subject: Re: bug#54521: [PATCH] dircolors: colorize backup files with bright black Content-Language: en-US To: =?UTF-8?Q?Ville_Skytt=c3=a4?= , 54521@debbugs.gnu.org References: <20220322182427.1040186-1-ville.skytta@iki.fi> From: =?UTF-8?Q?P=c3=a1draig_Brady?= In-Reply-To: <20220322182427.1040186-1-ville.skytta@iki.fi> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 54521 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) On 22/03/2022 18:24, Ville Skyttä wrote: > Useful as it makes them stand out less than non-backup files. > --- > src/dircolors.hin | 19 +++++++++++++++++++ > 1 file changed, 19 insertions(+) > > diff --git a/src/dircolors.hin b/src/dircolors.hin > index 673835201..6dc5a2d74 100644 > --- a/src/dircolors.hin > +++ b/src/dircolors.hin > @@ -211,5 +211,24 @@ EXEC 01;32 > .spx 00;36 > .xspf 00;36 > > +# backup files > +*~ 00;90 > +*# 00;90 > +.bak 00;90 > +.old 00;90 > +.orig 00;90 > +.part 00;90 > +.rej 00;90 > +.swp 00;90 > +.tmp 00;90 > +.dpkg-dist 00;90 > +.dpkg-old 00;90 > +.ucf-dist 00;90 > +.ucf-new 00;90 > +.ucf-old 00;90 > +.rpmnew 00;90 > +.rpmorig 00;90 > +.rpmsave 00;90 > + > # Subsequent TERM or COLORTERM entries, can be used to add / override > # config specific to those matching environment variables. I quite like that actually. The default coloring works well on both dark and light backgrounds. Coloring this class of files does seem useful. +1 from me anyway. thanks, Pádraig From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 03 16:24:53 2022 Received: (at 54521-done) by debbugs.gnu.org; 3 Apr 2022 20:24:53 +0000 Received: from localhost ([127.0.0.1]:49656 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nb6mK-0004ss-TJ for submit@debbugs.gnu.org; Sun, 03 Apr 2022 16:24:53 -0400 Received: from mail-wr1-f46.google.com ([209.85.221.46]:46893) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nb6mH-0004sd-7b for 54521-done@debbugs.gnu.org; Sun, 03 Apr 2022 16:24:51 -0400 Received: by mail-wr1-f46.google.com with SMTP id h4so11634292wrc.13 for <54521-done@debbugs.gnu.org>; Sun, 03 Apr 2022 13:24:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:message-id:date:mime-version:user-agent:subject :content-language:from:to:references:in-reply-to :content-transfer-encoding; bh=uEUK6MLd5FnfrlH8lHUHL9cBKgk4kmzS9pkIs8uSO6Y=; b=PBN+r4Rr/p1TShFLdTU3qQiqKXPPdRG1q3ncT/1wsMYXMeI/9HZn7FKrRgxtsXp8Zj E4MT4Oo3D1C0hK2Ua2Tu4g6eYI1sZZahV1RgP4j/Rqb2dY2uYmtKLZKzVIA6xt2mYotK MKTB/Td+3woOZwxTnzz1FNtOwk1apANWYeYlt1LrJKUI3CwlOYg4TRh4INJ7ft8wB/9+ 6ZyniVpVagBAmCIrNK72kAgtoET3RJ/+69HeGE02ecJlTt06OoBN0VwCdTmDzCDVzhAS YP56HC79BCGgXgul99xNJJcPOAquLOXiqyGR/wG76J7tKIQi9NRr4uCWqpEWfXyzkN+F +66w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:message-id:date:mime-version:user-agent :subject:content-language:from:to:references:in-reply-to :content-transfer-encoding; bh=uEUK6MLd5FnfrlH8lHUHL9cBKgk4kmzS9pkIs8uSO6Y=; b=rb+0QVtl+iCkT/03NOQMlc6eR8lT/s0V2FWx5lZ9k04EBqpco3bk6NHvy4gI4dZD43 pf8OmuisE2OZtntt1LBpHWfQ9dp0jeKmiuVaR6A1QIBIjxoLTaOoQmBhe09vxGGIzccN a3Ii/KMBSzL50Hm5y18SpIHrjrmnlIMOT4WFDjMSNQiM72+vwJRlIuvTEsvR2re6TmCi FWrciWX+wuz4JKHxyMV5IzKn5+EsN8jja27bUvARe5Xl8ehJAVjWJhhDs/Q+Avqj6+4M Vq6ggr/SwFBH2Y1g0Pqm5Vgdzt2TjrRmevGjOVLPYUo55CO+HH1nfUQrZ1k7ExSAwFU2 dhmQ== X-Gm-Message-State: AOAM5325BmMPDIUMx5ydAWVR+KPinYoQiwht/4AALbcce0N0c9Dd8q6E bGy5zoZZAYTTmSCHJHI39cA= X-Google-Smtp-Source: ABdhPJy0t1xbBSVuoRRi9JgpGqMDx1+WBdk/MTOuOVRzHXPxiAbQtZeY2kvbFPqSMgbia/wfuaPE6A== X-Received: by 2002:adf:fecf:0:b0:1f0:62e0:bcd8 with SMTP id q15-20020adffecf000000b001f062e0bcd8mr14865498wrs.61.1649017483360; Sun, 03 Apr 2022 13:24:43 -0700 (PDT) Received: from [192.168.1.9] (95-44-90-175-dynamic.agg2.lod.rsl-rtd.eircom.net. [95.44.90.175]) by smtp.googlemail.com with ESMTPSA id c24-20020a7bc018000000b0038a18068cf5sm15026764wmb.15.2022.04.03.13.24.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 03 Apr 2022 13:24:42 -0700 (PDT) Message-ID: Date: Sun, 3 Apr 2022 21:24:41 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:97.0) Gecko/20100101 Thunderbird/97.0 Subject: Re: bug#54521: [PATCH] dircolors: colorize backup files with bright black Content-Language: en-US From: =?UTF-8?Q?P=c3=a1draig_Brady?= To: =?UTF-8?Q?Ville_Skytt=c3=a4?= , 54521-done@debbugs.gnu.org References: <20220322182427.1040186-1-ville.skytta@iki.fi> <4c49d6e6-e521-b21b-2171-e784a607e38b@draigBrady.com> In-Reply-To: <4c49d6e6-e521-b21b-2171-e784a607e38b@draigBrady.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 54521-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) On 23/03/2022 23:53, Pádraig Brady wrote: > On 22/03/2022 18:24, Ville Skyttä wrote: >> Useful as it makes them stand out less than non-backup files. >> --- >> src/dircolors.hin | 19 +++++++++++++++++++ >> 1 file changed, 19 insertions(+) >> >> diff --git a/src/dircolors.hin b/src/dircolors.hin >> index 673835201..6dc5a2d74 100644 >> --- a/src/dircolors.hin >> +++ b/src/dircolors.hin >> @@ -211,5 +211,24 @@ EXEC 01;32 >> .spx 00;36 >> .xspf 00;36 >> >> +# backup files >> +*~ 00;90 >> +*# 00;90 >> +.bak 00;90 >> +.old 00;90 >> +.orig 00;90 >> +.part 00;90 >> +.rej 00;90 >> +.swp 00;90 >> +.tmp 00;90 >> +.dpkg-dist 00;90 >> +.dpkg-old 00;90 >> +.ucf-dist 00;90 >> +.ucf-new 00;90 >> +.ucf-old 00;90 >> +.rpmnew 00;90 >> +.rpmorig 00;90 >> +.rpmsave 00;90 >> + >> # Subsequent TERM or COLORTERM entries, can be used to add / override >> # config specific to those matching environment variables. > > I quite like that actually. > The default coloring works well on both dark and light backgrounds. > Coloring this class of files does seem useful. > > +1 from me anyway. I've pushed this after some perf testing showing it had negligible perf impact. https://git.sv.gnu.org/cgit/coreutils.git/commit/?id=52aeae2c3 Here is a small example of the output: https://www.pixelbeat.org/patches/coreutils/ls-backup-colors.html cheers, Pádraig From unknown Sat Aug 16 16:00:59 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 02 May 2022 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator