1
0
Fork 0

Add stuff to LS_COLORS, change compressed to red, text to cyan

This commit is contained in:
tastytea 2022-04-01 03:23:56 +02:00
parent 05a3d13dba
commit 93120ef0ff
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
1 changed files with 20 additions and 19 deletions

View File

@ -144,27 +144,28 @@ function _gen_lscolor()
print -n ":*.${ext}=${color}"
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" 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)"
# Program code (rose)
LS_COLORS="${LS_COLORS}$(_gen_lscolor "38;5;177" cpp cxx c++ c go rs)"
LS_COLORS="${LS_COLORS}$(_gen_lscolor "38;5;177" py rb el ebuild zsh sh bash pl php phtml qml)"
# Stuff that gets included (violet)
LS_COLORS="${LS_COLORS}$(_gen_lscolor "38;5;105" hpp hxx h++ h qss qrc)"
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)"
# 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;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;112" m3u m3u8 pls)"
# 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)"
# Compressed files
LS_COLORS="${LS_COLORS}$(_gen_lscolor "4" gz zst bz2 xz lzma ar zip rar 7z Z)"
# Build systems and adjacent (green)
LS_COLORS="${LS_COLORS}$(_gen_lscolor "38;5;112" patch diff in cmake build mk ac m4 am)"
# Images, audio, video, playlists (yellow, orange, green)
LS_COLORS="${LS_COLORS}$(_gen_lscolor "38;5;184" webp png jpg jpeg gif svg svgz xcf bmp ico icns tiff tif xpm xbm tga ppm)"
LS_COLORS="${LS_COLORS}$(_gen_lscolor "38;5;172" flac opus ogg oga mp3 m4a wav mid midi wma ac3 au aac spx)"
LS_COLORS="${LS_COLORS}$(_gen_lscolor "38;5;172" mkv webm ogv ogm mp4 m4v avi mpeg mpg wmv flv mov 3gp asf)"
LS_COLORS="${LS_COLORS}$(_gen_lscolor "38;5;112" m3u m3u8 pls xspf)"
# Text (cyan)
LS_COLORS="${LS_COLORS}$(_gen_lscolor "38;5;117" txt md adoc rst html xhtml shtml htm)"
# Config files (ochre)
LS_COLORS="${LS_COLORS}$(_gen_lscolor "38;5;100" cfg json ini conf yml yaml xml toml)"
# Compressed files and archives (red)
LS_COLORS="${LS_COLORS}$(_gen_lscolor "38;5;124" tar gz tgz zst bz2 xz lzma ar zip rar 7z Z arc lha cpio zoo)"
# 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:*meson_options.txt=38;5;112"
LS_COLORS="${LS_COLORS}:*go.mod=38;5;112:*go.sum=38;5;112"
export LS_COLORS
unfunction _gen_lscolor