]> git.madduck.net Git - etc/zsh.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

change to dracula dircolors for dark theme
authormartin f. krafft <madduck@madduck.net>
Wed, 16 Apr 2025 20:46:05 +0000 (22:46 +0200)
committermartin f. krafft <madduck@madduck.net>
Wed, 16 Apr 2025 20:46:05 +0000 (22:46 +0200)
.zsh/dircolors

index 646810c4f7b486d6f47fca4591c796d31bc807b5..249058978ce0401b09032a47717db96e86b80d28 100644 (file)
-# dircolors
-#
-# colours for directory listings for normal people
-#
-# Copyright © 1994–2017 martin f. krafft <madduck@madduck.net>
-# Released under the terms of the Artistic Licence 2.0
-#
-# Source repository: http://git.madduck.net/v/etc/zsh.git
-#
-
-### BEGIN dircolors --print-database output ##################################
 # Configuration file for dircolors, a utility to help you set the
 # LS_COLORS environment variable used by GNU ls with the --color option.
-# Copyright (C) 1996-2016 Free Software Foundation, Inc.
+
+# Copyright (C) 1996-2024 Free Software Foundation, Inc.
 # Copying and distribution of this file, with or without modification,
 # are permitted provided the copyright notice and this notice are preserved.
+
+#
 # The keywords COLOR, OPTIONS, and EIGHTBIT (honored by the
 # slackware version of dircolors) are recognized but ignored.
-# Below, there should be one TERM entry for each termtype that is colorizable
+
+# Global config options can be specified before TERM or COLORTERM entries
+
+# ===================================================================
+# Terminal filters
+# ===================================================================
+# Below are TERM or COLORTERM entries, which can be glob patterns, which
+# restrict following config to systems with matching environment variables.
+COLORTERM ?*
 TERM Eterm
 TERM ansi
-TERM color-xterm
-TERM con132x25
-TERM con132x30
-TERM con132x43
-TERM con132x60
-TERM con80x25
-TERM con80x28
-TERM con80x30
-TERM con80x43
-TERM con80x50
-TERM con80x60
+TERM *color*
+TERM con[0-9]*x[0-9]*
 TERM cons25
 TERM console
 TERM cygwin
+TERM *direct*
 TERM dtterm
-TERM eterm-color
 TERM gnome
-TERM gnome-256color
+TERM hurd
+TERM jfbterm
 TERM konsole
 TERM kterm
 TERM linux
 TERM linux-c
-TERM mach-color
 TERM mlterm
 TERM putty
-TERM rxvt
-TERM rxvt-cygwin
-TERM rxvt-cygwin-native
-TERM rxvt-unicode
-TERM screen
-TERM screen-256color
-TERM screen-bce
-TERM screen-w
-TERM screen.linux
-TERM vt100
-TERM xterm
-TERM xterm-16color
-TERM xterm-256color
-TERM xterm-88color
-TERM xterm-color
-TERM xterm-debian
-# Below are the color init strings for the basic file types. A color init
-# string consists of one or more of the following numeric codes:
+TERM rxvt*
+TERM screen*
+TERM st
+TERM terminator
+TERM tmux*
+TERM vt48;2;98;114;164
+TERM xterm*
+
+# ===================================================================
+# Basic file attributes
+# ===================================================================
+# Below are the color init strings for the basic file types.
+# One can use codes for 256 or more colors supported by modern terminals.
+# The default color codes use the capabilities of an 8 color terminal
+# with some additional attributes as per the following codes:
 # Attribute codes:
 # 00=none 01=bold 04=underscore 05=blink 07=reverse 08=concealed
 # Text color codes:
-# 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white
+# 38;2;33;34;44=black 38;2;255;85;85=red 38;2;80;250;123=green 38;2;241;250;140=yellow 38;2;189;147;249=blue 38;2;255;121;198=magenta 38;2;139;233;253=cyan 38;2;248;248;242=white
 # Background color codes:
-# 40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white
-NORMAL 00 # global default, although everything should be something.
-FILE 00 # normal file
-DIR 01;34 # directory
-LINK 01;36 # symbolic link. (If you set this to 'target' instead of a
- # numerical value, the color is as for the file pointed to.)
-FIFO 40;33 # pipe
-SOCK 01;35 # socket
-DOOR 01;35 # door
-BLK 40;33;01 # block device driver
-CHR 40;33;01 # character device driver
-ORPHAN 40;31;01 # symlink to nonexistent file, or non-stat'able file
-SETUID 37;41 # file that is setuid (u+s)
-SETGID 30;43 # file that is setgid (g+s)
-CAPABILITY 30;41 # file with capability
-STICKY_OTHER_WRITABLE 30;42 # dir that is sticky and other-writable (+t,o+w)
-OTHER_WRITABLE 34;42 # dir that is other-writable (o+w) and not sticky
-STICKY 37;44 # dir with the sticky bit set (+t) and not other-writable
-# This is for files with execute permission:
-EXEC 01;32
+# 48;2;33;34;44=black 48;2;255;85;85=red 48;2;80;250;123=green 48;2;241;250;140=yellow 48;2;189;147;249=blue 48;2;255;121;198=magenta 48;2;139;233;253=cyan 48;2;248;248;242=white
+#NORMAL 00     # no color code at all
+#FILE 00       # regular file: use no color at all
+RESET 0                # reset to "normal" color
+DIR 01;38;2;189;147;249        # directory
+LINK 01;38;2;139;233;253       # symbolic link.  (If you set this to 'target' instead of a
+                # numerical value, the color is as for the file pointed to.)
+MULTIHARDLINK 00       # regular file with more than one link
+FIFO 48;2;33;34;44;38;2;241;250;140    # pipe
+SOCK 01;38;2;255;121;198       # socket
+DOOR 01;38;2;255;121;198       # door
+BLK 48;2;33;34;44;38;2;241;250;140;01  # block device driver
+CHR 48;2;33;34;44;38;2;241;250;140;01  # character device driver
+ORPHAN 48;2;33;34;44;38;2;255;85;85;01 # symlink to nonexistent file, or non-stat'able file ...
+MISSING 00      # ... and the files they point to
+SETUID 38;2;248;248;242;48;2;255;85;85 # regular file that is setuid (u+s)
+SETGID 38;2;33;34;44;48;2;241;250;140  # regular file that is setgid (g+s)
+CAPABILITY 00  # regular file with capability (very expensive to lookup)
+STICKY_OTHER_WRITABLE 38;2;33;34;44;48;2;80;250;123 # dir that is sticky and other-writable (+t,o+w)
+OTHER_WRITABLE 38;2;189;147;249;48;2;80;250;123 # dir that is other-writable (o+w) and not sticky
+STICKY 38;2;248;248;242;48;2;189;147;249       # dir with the sticky bit set (+t) and not other-writable
+
+# This is for regular files with execute permission:
+EXEC 01;38;2;80;250;123
+
+# ===================================================================
+# File extension attributes
+# ===================================================================
 # 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 '#')
+# to color below. Put the suffix, a space, and the color init string.
+# (and any comments you want to add after a '#').
+# Suffixes are matched case insensitively, but if you define different
+# init strings for separate cases, those will be honored.
+#
+
 # If you use DOS-style suffixes, you may want to uncomment the following:
-#.cmd 01;32 # executables (bright green)
-#.exe 01;32
-#.com 01;32
-#.btm 01;32
-#.bat 01;32
-# Or if you want to colorize scripts even if they do not have the
+#.cmd 01;38;2;80;250;123 # executables (bright green)
+#.exe 01;38;2;80;250;123
+#.com 01;38;2;80;250;123
+#.btm 01;38;2;80;250;123
+#.bat 01;38;2;80;250;123
+# Or if you want to color scripts even if they do not have the
 # executable bit actually set.
-#.sh 01;32
-#.csh 01;32
- # archives or compressed (bright red)
-.tar 01;31
-.tgz 01;31
-.arc 01;31
-.arj 01;31
-.taz 01;31
-.lha 01;31
-.lz4 01;31
-.lzh 01;31
-.lzma 01;31
-.tlz 01;31
-.txz 01;31
-.tzo 01;31
-.t7z 01;31
-.zip 01;31
-.z 01;31
-.Z 01;31
-.dz 01;31
-.gz 01;31
-.lrz 01;31
-.lz 01;31
-.lzo 01;31
-.xz 01;31
-.zst 01;31
-.tzst 01;31
-.bz2 01;31
-.bz 01;31
-.tbz 01;31
-.tbz2 01;31
-.tz 01;31
-.deb 01;31
-.rpm 01;31
-.jar 01;31
-.war 01;31
-.ear 01;31
-.sar 01;31
-.rar 01;31
-.alz 01;31
-.ace 01;31
-.zoo 01;31
-.cpio 01;31
-.7z 01;31
-.rz 01;31
-.cab 01;31
+#.sh  01;38;2;80;250;123
+#.csh 01;38;2;80;250;123
+
+# archives or compressed (bright red)
+.7z  01;38;2;255;85;85
+.ace 01;38;2;255;85;85
+.alz 01;38;2;255;85;85
+.apk 01;38;2;255;85;85
+.arc 01;38;2;255;85;85
+.arj 01;38;2;255;85;85
+.bz  01;38;2;255;85;85
+.bz2 01;38;2;255;85;85
+.cab 01;38;2;255;85;85
+.cpio 01;38;2;255;85;85
+.crate 01;38;2;255;85;85
+.deb 01;38;2;255;85;85
+.drpm 01;38;2;255;85;85
+.dwm 01;38;2;255;85;85
+.dz  01;38;2;255;85;85
+.ear 01;38;2;255;85;85
+.egg 01;38;2;255;85;85
+.esd 01;38;2;255;85;85
+.gz  01;38;2;255;85;85
+.jar 01;38;2;255;85;85
+.lha 01;38;2;255;85;85
+.lrz 01;38;2;255;85;85
+.lz  01;38;2;255;85;85
+.lz4 01;38;2;255;85;85
+.lzh 01;38;2;255;85;85
+.lzma 01;38;2;255;85;85
+.lzo 01;38;2;255;85;85
+.pyz 01;38;2;255;85;85
+.rar 01;38;2;255;85;85
+.rpm 01;38;2;255;85;85
+.rz  01;38;2;255;85;85
+.sar 01;38;2;255;85;85
+.swm 01;38;2;255;85;85
+.t7z 01;38;2;255;85;85
+.tar 01;38;2;255;85;85
+.taz 01;38;2;255;85;85
+.tbz 01;38;2;255;85;85
+.tbz2 01;38;2;255;85;85
+.tgz 01;38;2;255;85;85
+.tlz 01;38;2;255;85;85
+.txz 01;38;2;255;85;85
+.tz  01;38;2;255;85;85
+.tzo 01;38;2;255;85;85
+.tzst 01;38;2;255;85;85
+.udeb 01;38;2;255;85;85
+.war 01;38;2;255;85;85
+.whl 01;38;2;255;85;85
+.wim 01;38;2;255;85;85
+.xz  01;38;2;255;85;85
+.z   01;38;2;255;85;85
+.zip 01;38;2;255;85;85
+.zoo 01;38;2;255;85;85
+.zst 01;38;2;255;85;85
+
 # image formats
-.jpg 01;35
-.jpeg 01;35
-.mjpg 01;35
-.mjpeg 01;35
-.gif 01;35
-.bmp 01;35
-.pbm 01;35
-.pgm 01;35
-.ppm 01;35
-.tga 01;35
-.xbm 01;35
-.xpm 01;35
-.tif 01;35
-.tiff 01;35
-.png 01;35
-.svg 01;35
-.svgz 01;35
-.mng 01;35
-.pcx 01;35
-.mov 01;35
-.mpg 01;35
-.mpeg 01;35
-.m2v 01;35
-.mkv 01;35
-.webm 01;35
-.ogm 01;35
-.mp4 01;35
-.m4v 01;35
-.mp4v 01;35
-.vob 01;35
-.qt 01;35
-.nuv 01;35
-.wmv 01;35
-.asf 01;35
-.rm 01;35
-.rmvb 01;35
-.flc 01;35
-.avi 01;35
-.fli 01;35
-.flv 01;35
-.gl 01;35
-.dl 01;35
-.xcf 01;35
-.xwd 01;35
-.yuv 01;35
-.cgm 01;35
-.emf 01;35
-# http://wiki.xiph.org/index.php/MIME_Types_and_File_Extensions
-.ogv 01;35
-.ogx 01;35
-# audio formats
-.aac 00;36
-.au 00;36
-.flac 00;36
-.m4a 00;36
-.mid 00;36
-.midi 00;36
-.mka 00;36
-.mp3 00;36
-.mpc 00;36
-.ogg 00;36
-.ra 00;36
-.wav 00;36
-# http://wiki.xiph.org/index.php/MIME_Types_and_File_Extensions
-.oga 00;36
-.opus 00;36
-.spx 00;36
-.xspf 00;36
-### END dircolors --print-database output ####################################
+.avif 01;38;2;255;121;198
+.jpg 01;38;2;255;121;198
+.jpeg 01;38;2;255;121;198
+.mjpg 01;38;2;255;121;198
+.mjpeg 01;38;2;255;121;198
+.gif 01;38;2;255;121;198
+.bmp 01;38;2;255;121;198
+.pbm 01;38;2;255;121;198
+.pgm 01;38;2;255;121;198
+.ppm 01;38;2;255;121;198
+.tga 01;38;2;255;121;198
+.xbm 01;38;2;255;121;198
+.xpm 01;38;2;255;121;198
+.tif 01;38;2;255;121;198
+.tiff 01;38;2;255;121;198
+.png 01;38;2;255;121;198
+.svg 01;38;2;255;121;198
+.svgz 01;38;2;255;121;198
+.mng 01;38;2;255;121;198
+.pcx 01;38;2;255;121;198
+.mov 01;38;2;255;121;198
+.mpg 01;38;2;255;121;198
+.mpeg 01;38;2;255;121;198
+.m2v 01;38;2;255;121;198
+.mkv 01;38;2;255;121;198
+.webm 01;38;2;255;121;198
+.webp 01;38;2;255;121;198
+.ogm 01;38;2;255;121;198
+.mp4 01;38;2;255;121;198
+.m4v 01;38;2;255;121;198
+.mp4v 01;38;2;255;121;198
+.vob 01;38;2;255;121;198
+.qt  01;38;2;255;121;198
+.nuv 01;38;2;255;121;198
+.wmv 01;38;2;255;121;198
+.asf 01;38;2;255;121;198
+.rm  01;38;2;255;121;198
+.rmvb 01;38;2;255;121;198
+.flc 01;38;2;255;121;198
+.avi 01;38;2;255;121;198
+.fli 01;38;2;255;121;198
+.flv 01;38;2;255;121;198
+.gl 01;38;2;255;121;198
+.dl 01;38;2;255;121;198
+.xcf 01;38;2;255;121;198
+.xwd 01;38;2;255;121;198
+.yuv 01;38;2;255;121;198
+.cgm 01;38;2;255;121;198
+.emf 01;38;2;255;121;198
 
-# now override stuff
+# https://wiki.xiph.org/MIME_Types_and_File_Extensions
+.ogv 01;38;2;255;121;198
+.ogx 01;38;2;255;121;198
 
-# Attribute codes:
-# 00=none 01=bold 04=underscore 05=blink 07=reverse 08=concealed
-# Text color codes:
-# 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white
-# Background color codes:
-# 40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white
-DIR 01;30
-LINK target
-EXEC 00;34
+# audio formats
+.aac 00;38;2;139;233;253
+.au 00;38;2;139;233;253
+.flac 00;38;2;139;233;253
+.m4a 00;38;2;139;233;253
+.mid 00;38;2;139;233;253
+.midi 00;38;2;139;233;253
+.mka 00;38;2;139;233;253
+.mp3 00;38;2;139;233;253
+.mpc 00;38;2;139;233;253
+.ogg 00;38;2;139;233;253
+.ra 00;38;2;139;233;253
+.wav 00;38;2;139;233;253
 
-# and remove all the bold from the images and archives:
-# archives or compressed (bright red)
-.tar 00;31
-.tgz 00;31
-.arc 00;31
-.arj 00;31
-.taz 00;31
-.lha 00;31
-.lz4 00;31
-.lzh 00;31
-.lzma 00;31
-.tlz 00;31
-.txz 00;31
-.tzo 00;31
-.t7z 00;31
-.zip 00;31
-.z 00;31
-.Z 00;31
-.dz 00;31
-.gz 00;31
-.lrz 00;31
-.lz 00;31
-.lzo 00;31
-.xz 00;31
-.zst 00;31
-.tzst 00;31
-.bz2 00;31
-.bz 00;31
-.tbz 00;31
-.tbz2 00;31
-.tz 00;31
-.deb 00;31
-.rpm 00;31
-.jar 00;31
-.war 00;31
-.ear 00;31
-.sar 00;31
-.rar 00;31
-.alz 00;31
-.ace 00;31
-.zoo 00;31
-.cpio 00;31
-.7z 00;31
-.rz 00;31
-.cab 00;31
-# image formats
-.jpg 00;35
-.jpeg 00;35
-.mjpg 00;35
-.mjpeg 00;35
-.gif 00;35
-.bmp 00;35
-.pbm 00;35
-.pgm 00;35
-.ppm 00;35
-.tga 00;35
-.xbm 00;35
-.xpm 00;35
-.tif 00;35
-.tiff 00;35
-.png 00;35
-.svg 00;35
-.svgz 00;35
-.mng 00;35
-.pcx 00;35
-.mov 00;35
-.mpg 00;35
-.mpeg 00;35
-.m2v 00;35
-.mkv 00;35
-.webm 00;35
-.ogm 00;35
-.mp4 00;35
-.m4v 00;35
-.mp4v 00;35
-.vob 00;35
-.qt 00;35
-.nuv 00;35
-.wmv 00;35
-.asf 00;35
-.rm 00;35
-.rmvb 00;35
-.flc 00;35
-.avi 00;35
-.fli 00;35
-.flv 00;35
-.gl 00;35
-.dl 00;35
-.xcf 00;35
-.xwd 00;35
-.yuv 00;35
-.cgm 00;35
-.emf 00;35
-# http://wiki.xiph.org/index.php/MIME_Types_and_File_Extensions
-.ogv 00;35
-.ogx 00;35
+# https://wiki.xiph.org/MIME_Types_and_File_Extensions
+.oga 00;38;2;139;233;253
+.opus 00;38;2;139;233;253
+.spx 00;38;2;139;233;253
+.xspf 00;38;2;139;233;253
+
+# backup files
+*~ 00;38;2;98;114;164
+*# 00;38;2;98;114;164
+.bak 00;38;2;98;114;164
+.crdownload 00;38;2;98;114;164
+.dpkg-dist 00;38;2;98;114;164
+.dpkg-new 00;38;2;98;114;164
+.dpkg-old 00;38;2;98;114;164
+.dpkg-tmp 00;38;2;98;114;164
+.old 00;38;2;98;114;164
+.orig 00;38;2;98;114;164
+.part 00;38;2;98;114;164
+.rej 00;38;2;98;114;164
+.rpmnew 00;38;2;98;114;164
+.rpmorig 00;38;2;98;114;164
+.rpmsave 00;38;2;98;114;164
+.swp 00;38;2;98;114;164
+.tmp 00;38;2;98;114;164
+.ucf-dist 00;38;2;98;114;164
+.ucf-new 00;38;2;98;114;164
+.ucf-old 00;38;2;98;114;164
 
-# vim:ft=dircolors
+#
+# Subsequent TERM or COLORTERM entries, can be used to add / override
+# config specific to those matching environment variables.