1 # Configuration file for dircolors, a utility to help you set the
2 # LS_COLORS environment variable used by GNU ls with the --color option.
4 # Copyright (C) 1996-2024 Free Software Foundation, Inc.
5 # Copying and distribution of this file, with or without modification,
6 # are permitted provided the copyright notice and this notice are preserved.
9 # The keywords COLOR, OPTIONS, and EIGHTBIT (honored by the
10 # slackware version of dircolors) are recognized but ignored.
12 # Global config options can be specified before TERM or COLORTERM entries
14 # ===================================================================
16 # ===================================================================
17 # Below are TERM or COLORTERM entries, which can be glob patterns, which
18 # restrict following config to systems with matching environment variables.
46 # ===================================================================
47 # Basic file attributes
48 # ===================================================================
49 # Below are the color init strings for the basic file types.
50 # One can use codes for 256 or more colors supported by modern terminals.
51 # The default color codes use the capabilities of an 8 color terminal
52 # with some additional attributes as per the following codes:
54 # 00=none 01=bold 04=underscore 05=blink 07=reverse 08=concealed
56 # 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white
57 # Background color codes:
58 # 40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white
59 #NORMAL 00 # no color code at all
60 #FILE 00 # regular file: use no color at all
61 RESET 0 # reset to "normal" color
63 LINK 01;36 # symbolic link. (If you set this to 'target' instead of a
64 # numerical value, the color is as for the file pointed to.)
65 MULTIHARDLINK 00 # regular file with more than one link
69 BLK 40;33;01 # block device driver
70 CHR 40;33;01 # character device driver
71 ORPHAN 40;31;01 # symlink to nonexistent file, or non-stat'able file ...
72 MISSING 00 # ... and the files they point to
73 SETUID 37;41 # regular file that is setuid (u+s)
74 SETGID 30;43 # regular file that is setgid (g+s)
75 CAPABILITY 00 # regular file with capability (very expensive to lookup)
76 STICKY_OTHER_WRITABLE 30;42 # dir that is sticky and other-writable (+t,o+w)
77 OTHER_WRITABLE 34;42 # dir that is other-writable (o+w) and not sticky
78 STICKY 37;44 # dir with the sticky bit set (+t) and not other-writable
80 # This is for regular files with execute permission:
83 # ===================================================================
84 # File extension attributes
85 # ===================================================================
86 # List any file extensions like '.gz' or '.tar' that you would like ls
87 # to color below. Put the suffix, a space, and the color init string.
88 # (and any comments you want to add after a '#').
89 # Suffixes are matched case insensitively, but if you define different
90 # init strings for separate cases, those will be honored.
93 # If you use DOS-style suffixes, you may want to uncomment the following:
94 #.cmd 01;32 # executables (bright green)
99 # Or if you want to color scripts even if they do not have the
100 # executable bit actually set.
104 # archives or compressed (bright red)
210 # https://wiki.xiph.org/MIME_Types_and_File_Extensions
228 # https://wiki.xiph.org/MIME_Types_and_File_Extensions
257 # Subsequent TERM or COLORTERM entries, can be used to add / override
258 # config specific to those matching environment variables.