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]