# HG changeset patch # User zegervdv # Date 1643705316 -3600 # Node ID 4a8042dab396c30cfdc41d65729e0bb2f1fa9fdf # Parent 1b60ade60015f8ee36aebe3bdb2d479e62ae6179 Tweak dircolors diff -r 1b60ade60015 -r 4a8042dab396 dot_lscolors --- a/dot_lscolors Tue Feb 01 08:50:15 2022 +0100 +++ b/dot_lscolors Tue Feb 01 09:48:36 2022 +0100 @@ -1,487 +1,155 @@ -# Exact Solarized Dark color theme for the color GNU ls utility. -# Designed for dircolors (GNU coreutils) 5.97 -# -# This simple theme was simultaneously designed for these terminal color schemes: -# - Solarized dark (best) -# - Solarized light -# - default dark -# - default light -# with a slight optimization for Solarized Dark. -# -# How the colors were selected: -# - Terminal emulators often have an option typically enabled by default that makes -# bold a different color. It is important to leave this option enabled so that -# you can access the entire 16-color Solarized palette, and not just 8 colors. -# - We favor universality over a greater number of colors. So we limit the number -# of colors so that this theme will work out of the box in all terminals, -# Solarized or not, dark or light. -# - We choose to have the following category of files: -# NORMAL & FILE, DIR, LINK, EXEC and -# editable text including source, unimportant text, binary docs & multimedia source -# files, viewable multimedia, archived/compressed, and unimportant non-text -# - For uniqueness, we stay away from the Solarized foreground colors are -- either -# base00 (brightyellow) or base0 (brightblue). However, they can be used if -# you know what the bg/fg colors of your terminal are, in order to optimize the display. -# - 3 different options are provided: universal, solarized dark, and solarized light. -# The only difference between the universal scheme and one that's optimized for -# dark/light is the color of "unimportant" files, which should blend more with the -# background -# - We note that blue is the hardest color to see on dark bg and yellow is the hardest -# color to see on light bg (with blue being particularly bad). So we choose yellow -# for multimedia files which are usually accessed in a GUI folder browser anyway. -# And blue is kept for custom use of this scheme's user. -# - See table below to see the assignments. +# Term Section +TERM xterm-256color - -# Installation instructions: -# This file goes in the /etc directory, and must be world readable. -# You can copy this file to .dir_colors in your $HOME directory to override -# the system defaults. - -# COLOR needs one of these arguments: 'tty' colorizes output to ttys, but not -# pipes. 'all' adds color characters to all output. 'none' shuts colorization -# off. -COLOR tty +NORMAL 00;38;2;171;178;191 # no color code at all +FILE 00 # regular file: use no color at all +RESET 00;38;2;171;178;191 # reset to "normal" color +DIR 00;38;2;97;175;239 # directory 01;34 +LINK 00;38;2;86;182;194 # symbolic link. (If you set this to 'target' instead of a +MULTIHARDLINK 00 # regular file with more than one link +FIFO 07;38;2;171;178;191 # pipe +SOCK 07;38;2;171;178;191 # socket +DOOR 07;38;2;171;178;191 # door +BLK 07;38;2;171;178;191 # block device driver +CHR 07;38;2;171;178;191 # character device driver +ORPHAN 00;38;2;190;80;70 # symlink to nonexistent file, or non-stat'able file +SETUID 01;38;2;171;178;191 # file that is setuid (u+s) +SETGID 04;01;38;2;171;178;191 # file that is setgid (g+s) +CAPABILITY 07;38;2;171;178;191 # file with capability +STICKY_OTHER_WRITABLE 04;01;38;2;97;175;239 # dir that is sticky and other-writable (+t,o+w) +OTHER_WRITABLE 01;38;2;97;175;239 # dir that is other-writable (o+w) and not sticky +STICKY 04;38;2;97;175;239 # dir with the sticky bit set (+t) and not other-writable +EXEC 00;38;2;152;195;121 # This is for files with execute permission: -# Below, there should be one TERM entry for each termtype that is colorizable -TERM ansi -TERM color_xterm -TERM color-xterm -TERM con132x25 -TERM con132x30 -TERM con132x43 -TERM con132x60 -TERM con80x25 -TERM con80x28 -TERM con80x30 -TERM con80x43 -TERM con80x50 -TERM con80x60 -TERM cons25 -TERM console -TERM cygwin -TERM dtterm -TERM dvtm -TERM dvtm-256color -TERM Eterm -TERM eterm-color -TERM fbterm -TERM gnome -TERM gnome-256color -TERM jfbterm -TERM konsole -TERM konsole-256color -TERM kterm -TERM linux -TERM linux-c -TERM mach-color -TERM mlterm -TERM nxterm -TERM putty -TERM putty-256color -TERM rxvt -TERM rxvt-256color -TERM rxvt-cygwin -TERM rxvt-cygwin-native -TERM rxvt-unicode -TERM rxvt-unicode256 -TERM rxvt-unicode-256color -TERM screen -TERM screen-16color -TERM screen-16color-bce -TERM screen-16color-s -TERM screen-16color-bce-s -TERM screen-256color -TERM screen-256color-bce -TERM screen-256color-s -TERM screen-256color-bce-s -TERM screen-256color-italic -TERM screen-bce -TERM screen-w -TERM screen.linux -TERM screen.xterm-256color -TERM screen.xterm-new -TERM st -TERM st-meta -TERM st-256color -TERM st-meta-256color -TERM tmux -TERM tmux-256color -TERM vt100 -TERM xterm -TERM xterm-new -TERM xterm-16color -TERM xterm-256color -TERM xterm-256color-italic -TERM xterm-88color -TERM xterm-color -TERM xterm-debian -TERM xterm-termite - -# EIGHTBIT, followed by '1' for on, '0' for off. (8-bit output) -EIGHTBIT 1 - -############################################################################# -# 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: -# -# 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 -# -# NOTES: -# - See http://www.oreilly.com/catalog/wdnut/excerpt/color_names.html -# - Color combinations -# ANSI Color code Solarized Notes Universal SolDark SolLight -# ~~~~~~~~~~~~~~~ ~~~~~~~~~ ~~~~~ ~~~~~~~~~ ~~~~~~~ ~~~~~~~~ -# 00 none NORMAL, FILE -# 30 black base02 -# 01;30 bright black base03 bg of SolDark -# 31 red red docs & mm src -# 01;31 bright red orange EXEC -# 32 green green editable text -# 01;32 bright green base01 unimportant text -# 33 yellow yellow unclear in light bg multimedia -# 01;33 bright yellow base00 fg of SolLight unimportant non-text -# 34 blue blue unclear in dark bg user customized -# 01;34 bright blue base0 fg in SolDark unimportant text -# 35 magenta magenta LINK -# 01;35 bright magenta violet archive/compressed -# 36 cyan cyan DIR -# 01;36 bright cyan base1 unimportant non-text -# 37 white base2 -# 01;37 bright white base3 bg in SolLight -# 05;37;41 unclear in Putty dark - - -### By file type - -# global default -NORMAL 00 -# normal file -FILE 00 -# directory -DIR 34 -# 777 directory -OTHER_WRITABLE 34;40 -STICKY_OTHER_WRITABLE 00 -# symbolic link -LINK 35 - -# pipe, socket, block device, character device (blue bg) -FIFO 30;44 -SOCK 35;44 -DOOR 35;44 # Solaris 2.5 and later -BLK 33;44 -CHR 37;44 +## Source Code (yellow) +.jl 00;38;2;255;194;75 +.c 00;38;2;255;194;75 +.cpp 00;38;2;255;194;75 +.cc 00;38;2;255;194;75 +.h 00;38;2;255;194;75 +.asm 00;38;2;255;194;75 +.py 00;38;2;255;194;75 +.js 00;38;2;255;194;75 +.java 00;38;2;255;194;75 +.sh 00;38;2;255;194;75 +.zsh 00;38;2;255;194;75 +.bash 00;38;2;255;194;75 +.perl 00;38;2;255;194;75 +.pl 00;38;2;255;194;75 +.go 00;38;2;255;194;75 +.scala 00;38;2;255;194;75 +.m 00;38;2;255;194;75 +.cs 00;38;2;255;194;75 +.r 00;38;2;255;194;75 +.lua 00;38;2;255;194;75 +.vim 00;38;2;255;194;75 +.sv 00;38;2;255;194;75 +.svh 00;38;2;255;194;75 +.v 00;38;2;255;194;75 +.vhd 00;38;2;255;194;75 +.html 00;38;2;255;194;75 -############################################################################# -### By file attributes - -# Orphaned symlinks (blinking white on red) -# Blink may or may not work (works on iTerm dark or light, and Putty dark) -ORPHAN 05;37;41 -# ... and the files that orphaned symlinks point to (blinking white on red) -MISSING 05;37;41 +## "Useless" files (Comment Grey) +.orig 00;38;2;92;99;112 +.dup 00;38;2;92;99;112 +.rej 00;38;2;92;99;112 -# files with execute permission -EXEC 01;31 # Unix -.cmd 01;31 # Win -.exe 01;31 # Win -.com 01;31 # Win -.bat 01;31 # Win -.reg 01;31 # Win -.app 01;31 # OSX - -############################################################################# -### By extension - -# 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 '#') - -### Text formats - -# Text that we can edit with a regular editor -.txt 32 -.org 32 -.md 32 -.mkd 32 +## Text files (light blue) +.csv 00;38;2;152;195;121 +.txt 00;38;2;152;195;121 +.md 00;38;2;152;195;121 +.toml 00;38;2;152;195;121 +.yml 00;38;2;152;195;121 +.yaml 00;38;2;152;195;121 +.xml 00;38;2;152;195;121 +.json 00;38;2;152;195;121 +.conf 00;38;2;152;195;121 -# Source text -.h 32 -.hpp 32 -.c 32 -.C 32 -.cc 32 -.cpp 32 -.cxx 32 -.objc 32 -.cl 32 -.sh 32 -.bash 32 -.csh 32 -.zsh 32 -.el 32 -.vim 32 -.java 32 -.pl 32 -.pm 32 -.py 32 -.rb 32 -.hs 32 -.php 32 -.htm 32 -.html 32 -.shtml 32 -.erb 32 -.haml 32 -.xml 32 -.rdf 32 -.css 32 -.sass 32 -.scss 32 -.less 32 -.js 32 -.coffee 32 -.man 32 -.0 32 -.1 32 -.2 32 -.3 32 -.4 32 -.5 32 -.6 32 -.7 32 -.8 32 -.9 32 -.l 32 -.n 32 -.p 32 -.pod 32 -.tex 32 -.go 32 -.sql 32 -.csv 32 -.sv 32 -.svh 32 -.v 32 -.vh 32 -.vhd 32 -.phsi 01;33 -.json 01;33 -.build 31 - -### Multimedia formats - -# Image -.bmp 33 -.cgm 33 -.dl 33 -.dvi 33 -.emf 33 -.eps 33 -.gif 33 -.jpeg 33 -.jpg 33 -.JPG 33 -.mng 33 -.pbm 33 -.pcx 33 -.pdf 33 -.pgm 33 -.png 33 -.PNG 33 -.ppm 33 -.pps 33 -.ppsx 33 -.ps 33 -.svg 33 -.svgz 33 -.tga 33 -.tif 33 -.tiff 33 -.xbm 33 -.xcf 33 -.xpm 33 -.xwd 33 -.xwd 33 -.yuv 33 - -# Audio -.aac 33 -.au 33 -.flac 33 -.m4a 33 -.mid 33 -.midi 33 -.mka 33 -.mp3 33 -.mpa 33 -.mpeg 33 -.mpg 33 -.ogg 33 -.opus 33 -.ra 33 -.wav 33 +## Archives or compressed (light red) +.tar 00;38;2;224;108;117 +.tgz 00;38;2;224;108;117 +.arj 00;38;2;224;108;117 +.taz 00;38;2;224;108;117 +.lzh 00;38;2;224;108;117 +.lzma 00;38;2;224;108;117 +.tlz 00;38;2;224;108;117 +.txz 00;38;2;224;108;117 +.zip 00;38;2;224;108;117 +.z 00;38;2;224;108;117 +.Z 00;38;2;224;108;117 +.dz 00;38;2;224;108;117 +.gz 00;38;2;224;108;117 +.lz 00;38;2;224;108;117 +.xz 00;38;2;224;108;117 +.bz2 00;38;2;224;108;117 +.bz 00;38;2;224;108;117 +.tbz 00;38;2;224;108;117 +.tbz2 00;38;2;224;108;117 +.tz 00;38;2;224;108;117 +.deb 00;38;2;224;108;117 +.rpm 00;38;2;224;108;117 +.jar 00;38;2;224;108;117 +.rar 00;38;2;224;108;117 +.ace 00;38;2;224;108;117 +.zoo 00;38;2;224;108;117 +.cpio 00;38;2;224;108;117 +.7z 00;38;2;224;108;117 +.rz 00;38;2;224;108;117 +.apk 00;38;2;224;108;117 +.gem 00;38;2;224;108;117 -# Video -.anx 33 -.asf 33 -.avi 33 -.axv 33 -.flc 33 -.fli 33 -.flv 33 -.gl 33 -.m2v 33 -.m4v 33 -.mkv 33 -.mov 33 -.MOV 33 -.mp4 33 -.mp4v 33 -.mpeg 33 -.mpg 33 -.nuv 33 -.ogm 33 -.ogv 33 -.ogx 33 -.qt 33 -.rm 33 -.rmvb 33 -.swf 33 -.vob 33 -.webm 33 -.wmv 33 - -### Misc - -# Binary document formats and multimedia source -.doc 31 -.docx 31 -.rtf 31 -.odt 31 -.dot 31 -.dotx 31 -.ott 31 -.xls 31 -.xlsx 31 -.ods 31 -.ots 31 -.ppt 31 -.pptx 31 -.odp 31 -.otp 31 -.fla 31 -.psd 31 - -# Archives, compressed -.7z 1;35 -.apk 1;35 -.arj 1;35 -.bin 1;35 -.bz 1;35 -.bz2 1;35 -.cab 1;35 # Win -.deb 1;35 -.dmg 1;35 # OSX -.gem 1;35 -.gz 1;35 -.iso 1;35 -.jar 1;35 -.msi 1;35 # Win -.rar 1;35 -.rpm 1;35 -.tar 1;35 -.tbz 1;35 -.tbz2 1;35 -.tgz 1;35 -.tx 1;35 -.war 1;35 -.xpi 1;35 -.xz 1;35 -.z 1;35 -.Z 1;35 -.zip 1;35 - -# For testing -.ANSI-30-black 30 -.ANSI-01;30-brblack 01;30 -.ANSI-31-red 31 -.ANSI-01;31-brred 01;31 -.ANSI-32-green 32 -.ANSI-01;32-brgreen 01;32 -.ANSI-33-yellow 33 -.ANSI-01;33-bryellow 01;33 -.ANSI-34-blue 34 -.ANSI-01;34-brblue 01;34 -.ANSI-35-magenta 35 -.ANSI-01;35-brmagenta 01;35 -.ANSI-36-cyan 36 -.ANSI-01;36-brcyan 01;36 -.ANSI-37-white 37 -.ANSI-01;37-brwhite 01;37 - -############################################################################# -# Your customizations - -# Unimportant text files -# For universal scheme, use brightgreen 01;32 -# For optimal on light bg (but too prominent on dark bg), use white 01;34 -.log 01;32 -*~ 01;32 -*# 01;32 -#.log 01;34 -#*~ 01;34 -#*# 01;34 - -# Unimportant non-text files -# For universal scheme, use brightcyan 01;36 -# For optimal on dark bg (but too prominent on light bg), change to 01;33 -#.bak 01;36 -#.BAK 01;36 -#.old 01;36 -#.OLD 01;36 -#.org_archive 01;36 -#.off 01;36 -#.OFF 01;36 -#.dist 01;36 -#.DIST 01;36 -#.orig 01;36 -#.ORIG 01;36 -#.swp 01;36 -#.swo 01;36 -#*,v 01;36 -.bak 00 -.BAK 00 -.old 00 -.OLD 00 -.org_archive 00 -.off 00 -.OFF 00 -.dist 00 -.DIST 00 -.orig 00 -.ORIG 00 -.swp 00 -.swo 00 -*,v 00 - -# The brightmagenta (Solarized: purple) color is free for you to use for your -# custom file type -.gpg 34 -.gpg 34 -.pgp 34 -.asc 34 -.3des 34 -.aes 34 -.enc 34 -.sqlite 34 -.dup 37 -.dcp 31 -.rpt 32 +# Image and Video formats (magenta) +.jpg 00;38;2;198;120;221 +.JPG 00;38;2;198;120;221 #stupid but needed +.jpeg 00;38;2;198;120;221 +.gif 00;38;2;198;120;221 +.bmp 00;38;2;198;120;221 +.pbm 00;38;2;198;120;221 +.pgm 00;38;2;198;120;221 +.ppm 00;38;2;198;120;221 +.tga 00;38;2;198;120;221 +.xbm 00;38;2;198;120;221 +.xpm 00;38;2;198;120;221 +.tif 00;38;2;198;120;221 +.tiff 00;38;2;198;120;221 +.png 00;38;2;198;120;221 +.PNG 00;38;2;198;120;221 +.svg 00;38;2;198;120;221 +.svgz 00;38;2;198;120;221 +.mng 00;38;2;198;120;221 +.pcx 00;38;2;198;120;221 +.dl 00;38;2;198;120;221 +.xcf 00;38;2;198;120;221 +.xwd 00;38;2;198;120;221 +.yuv 00;38;2;198;120;221 +.cgm 00;38;2;198;120;221 +.emf 00;38;2;198;120;221 +.eps 00;38;2;198;120;221 +.CR2 00;38;2;198;120;221 +.ico 00;38;2;198;120;221 +.mov 00;38;2;198;120;221 +.MOV 00;38;2;198;120;221 +.mpg 00;38;2;198;120;221 +.mpeg 00;38;2;198;120;221 +.m2v 00;38;2;198;120;221 +.mkv 00;38;2;198;120;221 +.ogm 00;38;2;198;120;221 +.mp4 00;38;2;198;120;221 +.m4v 00;38;2;198;120;221 +.mp4v 00;38;2;198;120;221 +.vob 00;38;2;198;120;221 +.qt 00;38;2;198;120;221 +.nuv 00;38;2;198;120;221 +.wmv 00;38;2;198;120;221 +.asf 00;38;2;198;120;221 +.rm 00;38;2;198;120;221 +.rmvb 00;38;2;198;120;221 +.flc 00;38;2;198;120;221 +.avi 00;38;2;198;120;221 +.fli 00;38;2;198;120;221 +.flv 00;38;2;198;120;221 +.gl 00;38;2;198;120;221 +.m2ts 00;38;2;198;120;221 +.divx 00;38;2;198;120;221 +.webm 00;38;2;198;120;221 diff -r 1b60ade60015 -r 4a8042dab396 dot_zshrc --- a/dot_zshrc Tue Feb 01 08:50:15 2022 +0100 +++ b/dot_zshrc Tue Feb 01 09:48:36 2022 +0100 @@ -86,7 +86,7 @@ export LESS_TERMCAP_us=$(printf "\e[1;32m") export CLICOLOR=1 -export LS_COLORS='no=00;37:fi=00:di=00;33:ln=04;36:pi=40;33:so=01;35:bd=40;33;01:' +eval "$(dircolors ~/.lscolors)" # Options setopt monitor