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;31and.zip.gz 02;31work? – Joe Theman Nov 10 '16 at 06:4802doesn't match anything so02;31is equivalent to00;31(standard red). – Stephen Kitt Nov 10 '16 at 08:0502is used to dim the color – cheesits456 Oct 15 '20 at 13:51