Skip to content

Commit

Permalink
sh: update dir_colors
Browse files Browse the repository at this point in the history
Firstly, do not highlight DOS and Windows executable files based on the
file extension.  I never found it useful while it is sometimes confusing
when I try to localise an executable file for a program with binaries for
multiple platforms.

Secondly, add extensions for AVIF and JPEG XL files to list of images.
  • Loading branch information
mina86 committed Jan 18, 2025
1 parent 8035ec5 commit e6e4454
Showing 1 changed file with 17 additions and 13 deletions.
30 changes: 17 additions & 13 deletions sh/dir_colors
Original file line number Diff line number Diff line change
Expand Up @@ -90,20 +90,20 @@ EXEC 01;32 # This is for files with execute permission:
# List any file extensions like '.gz' or '.tar' that you would like ls
# to colorize below. Put the extension, a space, and the color init string.
# (and any comments you want to add after a '#')

# DOS-style executables (bright green)
.bat 01;32
.BAT 01;32
.btm 01;32
.BTM 01;32
.cmd 01;32
.CMD 01;32
.com 01;32
.COM 01;32
.dll 01;32
.DLL 01;32
.exe 01;32
.EXE 01;32
#.bat 01;32
#.BAT 01;32
#.btm 01;32
#.BTM 01;32
#.cmd 01;32
#.CMD 01;32
#.com 01;32
#.COM 01;32
#.dll 01;32
#.DLL 01;32
#.exe 01;32
#.EXE 01;32

# archives or compressed (bright red)
.7z 01;31
Expand Down Expand Up @@ -153,6 +153,8 @@ EXEC 01;32 # This is for files with execute permission:
.axv 01;35
.avi 01;35
.AVI 01;35
.avif 01;35
.AVIF 01;35
.bmp 01;35
.BMP 01;35
.divx 01;35
Expand All @@ -167,6 +169,8 @@ EXEC 01;32 # This is for files with execute permission:
.JPG 01;35
.jpeg 01;35
.JPEG 01;35
.jxl 01;35
.JXL 01;35
.m2a 01;35
.M2A 01;35
.m2v 01;35
Expand Down

0 comments on commit e6e4454

Please sign in to comment.