From a81024704049644fb532e0f1dfaa6c66e78806c2 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Fri, 6 Sep 2013 03:48:23 +0200 Subject: [PATCH] shell/dircolors: Remove unnecessary rules. Also update documentation to match the current usage. --- shell/dircolors.in | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/shell/dircolors.in b/shell/dircolors.in index 59d1365..0df7768 100644 --- a/shell/dircolors.in +++ b/shell/dircolors.in @@ -64,16 +64,19 @@ BLK 00 CHR 00 -# Color important files which might be overlooked in full directories. `ls` -# can't color matching files, only matching extensions; therefore use the -# filename as extension. As most filenames have no weird extensions like -# ".README", this should work fine. +# Color important files which might be overlooked in full directories. +# +# `ls` can't color matching files, only matching extensions and suffixes; +# therefore use the suffix (which is a superset of matching extensions). As +# most filenames have no weird suffixes like "filenameNEWS", this should work +# fine most of the time. +# +# *foo matches files ending with foo, .foo only files with a foo extension +# (e.g. example.foo). # Read-me files (e.g. README, program.readme, etc.): bold magenta. *README 35;01 *readme 35;01 -.README 35;01 -.readme 35;01 # Misc files: bold magenta. *NEWS 35;01 *TODO 35;01 -- 2.45.2