Add some stuff to LS_COLORS and comment it

This commit is contained in:
tastytea 2022-03-31 23:53:52 +02:00
parent 1489bda6ba
commit ab7498a640
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM

View File

@ -144,17 +144,26 @@ function _gen_lscolor()
print -n ":*.${ext}=${color}" print -n ":*.${ext}=${color}"
done done
} }
# Program code
LS_COLORS="${LS_COLORS}$(_gen_lscolor "38;5;177" cpp cxx c++ c)" LS_COLORS="${LS_COLORS}$(_gen_lscolor "38;5;177" cpp cxx c++ c)"
LS_COLORS="${LS_COLORS}$(_gen_lscolor "38;5;177" py go rb rs el ebuild zsh sh bash)" LS_COLORS="${LS_COLORS}$(_gen_lscolor "38;5;177" py go rb rs el ebuild zsh sh bash pl php phtml)"
# Stuff that gets included
LS_COLORS="${LS_COLORS}$(_gen_lscolor "38;5;105" hpp hxx h++ h)" LS_COLORS="${LS_COLORS}$(_gen_lscolor "38;5;105" hpp hxx h++ h)"
LS_COLORS="${LS_COLORS}$(_gen_lscolor "38;5;105" css sass scss tmpl csp inc)"
# Build systems and adjacent
LS_COLORS="${LS_COLORS}$(_gen_lscolor "38;5;112" patch in cmake build mk ac m4 am)" LS_COLORS="${LS_COLORS}$(_gen_lscolor "38;5;112" patch in cmake build mk ac m4 am)"
# Images, audio, video, playlists
LS_COLORS="${LS_COLORS}$(_gen_lscolor "38;5;184" webp png jpg jpeg gif svg xcf)" LS_COLORS="${LS_COLORS}$(_gen_lscolor "38;5;184" webp png jpg jpeg gif svg xcf)"
LS_COLORS="${LS_COLORS}$(_gen_lscolor "38;5;172" flac opus ogg oga mp3 m4a wav mid wma ac3 au)" LS_COLORS="${LS_COLORS}$(_gen_lscolor "38;5;172" flac opus ogg oga mp3 m4a wav mid wma ac3 au)"
LS_COLORS="${LS_COLORS}$(_gen_lscolor "38;5;172" mkv webm ogv mp4 m4v avi mpeg mpg wmv flv mov 3gp)" LS_COLORS="${LS_COLORS}$(_gen_lscolor "38;5;172" mkv webm ogv mp4 m4v avi mpeg mpg wmv flv mov 3gp)"
LS_COLORS="${LS_COLORS}$(_gen_lscolor "38;5;112" m3u m3u8 pls)" LS_COLORS="${LS_COLORS}$(_gen_lscolor "38;5;112" m3u m3u8 pls)"
LS_COLORS="${LS_COLORS}$(_gen_lscolor "38;5;111" txt md adoc)" # Text
LS_COLORS="${LS_COLORS}$(_gen_lscolor "38;5;111" txt md adoc rst html xhtml shtml htm)"
# Config files
LS_COLORS="${LS_COLORS}$(_gen_lscolor "38;5;100" cfg json ini conf yml xml)" LS_COLORS="${LS_COLORS}$(_gen_lscolor "38;5;100" cfg json ini conf yml xml)"
# Compressed files
LS_COLORS="${LS_COLORS}$(_gen_lscolor "4" gz zst bz2 xz lzma ar zip rar 7z Z)" LS_COLORS="${LS_COLORS}$(_gen_lscolor "4" gz zst bz2 xz lzma ar zip rar 7z Z)"
# Special cases
LS_COLORS="${LS_COLORS}:*Makefile=38;5;112:*CMakeLists.txt=38;5;112" LS_COLORS="${LS_COLORS}:*Makefile=38;5;112:*CMakeLists.txt=38;5;112"
export LS_COLORS export LS_COLORS
unfunction _gen_lscolor unfunction _gen_lscolor