Is there a mapping of ANSI colors to their syntax in a given shell?

For example, in BASH, Blue seems to be Folders and Green seems to be executable files.

Does a list exist for what ANSI colors mean in BASH, SSH, VI, etc.?

  • Most of it is customizable, too. Vim has a whole plethora of colorschemes on-line, if you're willing to look. – new123456 Jul 24 '11 at 15:22

No, there is no universal mapping. /etc/DIR_COLORS or ~/.dir_colors gives the colors that ls uses; for everything else, consult the relevant documentation.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.