So I know that there is a way to change the color of text for directories, regular files, bash scripts, etc. Is there a way to change the color to the file based on the _file extension_
?
Example:
$ ls -l
foo.txt [is red]
foo.text [is blue]
foo.secret [is green]
foo.txt [is red]
.tar.gz 01;31
and.zip.gz 02;31
work? – Joe Theman Nov 10 '16 at 06:4802
doesn't match anything so02;31
is equivalent to00;31
(standard red). – Stephen Kitt Nov 10 '16 at 08:0502
is used to dim the color – cheesits456 Oct 15 '20 at 13:51