2020-02-28 14:25:43 +00:00
|
|
|
From 81e25c8521937ecf7f444bab11fddaaf81cc3efd Mon Sep 17 00:00:00 2001
|
2016-06-17 15:07:27 +00:00
|
|
|
From: Kamil Dudka <kdudka@redhat.com>
|
|
|
|
Date: Fri, 17 Jun 2016 16:58:18 +0200
|
|
|
|
Subject: [PATCH] downstream changes to default DIR_COLORS
|
|
|
|
|
|
|
|
---
|
2020-02-28 14:25:43 +00:00
|
|
|
DIR_COLORS | 9 ++++-
|
|
|
|
DIR_COLORS.256color | 78 ++++++++++++++++++++---------------------
|
|
|
|
DIR_COLORS.lightbgcolor | 21 +++++++----
|
|
|
|
3 files changed, 61 insertions(+), 47 deletions(-)
|
2016-06-17 15:07:27 +00:00
|
|
|
|
|
|
|
diff --git a/DIR_COLORS b/DIR_COLORS
|
2020-02-28 14:25:43 +00:00
|
|
|
index bd5df23..84f2417 100644
|
2016-06-17 15:07:27 +00:00
|
|
|
--- a/DIR_COLORS
|
|
|
|
+++ b/DIR_COLORS
|
2019-03-11 10:40:45 +00:00
|
|
|
@@ -1,3 +1,7 @@
|
2016-06-17 15:07:27 +00:00
|
|
|
+# 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.
|
|
|
|
+
|
2019-03-11 10:40:45 +00:00
|
|
|
# Configuration file for dircolors, a utility to help you set the
|
|
|
|
# LS_COLORS environment variable used by GNU ls with the --color option.
|
|
|
|
|
2017-03-09 08:57:09 +00:00
|
|
|
@@ -8,6 +12,9 @@
|
|
|
|
# The keywords COLOR, OPTIONS, and EIGHTBIT (honored by the
|
|
|
|
# slackware version of dircolors) are recognized but ignored.
|
2016-07-11 15:14:09 +00:00
|
|
|
|
2017-03-09 08:57:09 +00:00
|
|
|
+# For compatibility, the pattern "^COLOR.*none" is recognized as a way to
|
|
|
|
+# disable colorization. See https://bugzilla.redhat.com/1349579 for details.
|
|
|
|
+
|
2016-07-11 15:14:09 +00:00
|
|
|
# Below are TERM entries, which can be a glob patterns, to match
|
|
|
|
# against the TERM environment variable to determine if it is colorizable.
|
2017-03-09 08:57:09 +00:00
|
|
|
TERM Eterm
|
2019-03-11 10:40:45 +00:00
|
|
|
@@ -58,7 +65,7 @@ DOOR 01;35 # door
|
2016-06-17 15:07:27 +00:00
|
|
|
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 ...
|
|
|
|
-MISSING 00 # ... and the files they point to
|
2019-07-16 11:04:35 +00:00
|
|
|
+MISSING 01;37;41 # ... and the files they point to
|
2016-06-17 15:07:27 +00:00
|
|
|
SETUID 37;41 # file that is setuid (u+s)
|
|
|
|
SETGID 30;43 # file that is setgid (g+s)
|
|
|
|
CAPABILITY 30;41 # file with capability
|
|
|
|
diff --git a/DIR_COLORS.256color b/DIR_COLORS.256color
|
2020-02-28 14:25:43 +00:00
|
|
|
index 85bd28d..7f6d4c8 100644
|
2016-06-17 15:07:27 +00:00
|
|
|
--- a/DIR_COLORS.256color
|
|
|
|
+++ b/DIR_COLORS.256color
|
2017-03-09 08:57:09 +00:00
|
|
|
@@ -1,3 +1,9 @@
|
2016-06-17 15:07:27 +00:00
|
|
|
+# Configuration file for the 256color ls utility
|
|
|
|
+
|
|
|
|
+# 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.
|
2017-03-09 08:57:09 +00:00
|
|
|
+
|
|
|
|
# Configuration file for dircolors, a utility to help you set the
|
|
|
|
# LS_COLORS environment variable used by GNU ls with the --color option.
|
2016-06-17 15:07:27 +00:00
|
|
|
|
2017-03-09 08:57:09 +00:00
|
|
|
@@ -8,32 +14,13 @@
|
|
|
|
# The keywords COLOR, OPTIONS, and EIGHTBIT (honored by the
|
|
|
|
# slackware version of dircolors) are recognized but ignored.
|
2016-06-17 15:07:27 +00:00
|
|
|
|
2017-03-09 08:57:09 +00:00
|
|
|
+# For compatibility, the pattern "^COLOR.*none" is recognized as a way to
|
|
|
|
+# disable colorization. See https://bugzilla.redhat.com/1349579 for details.
|
|
|
|
+
|
2016-06-17 15:07:27 +00:00
|
|
|
# Below are TERM entries, which can be a glob patterns, to match
|
|
|
|
# against the TERM environment variable to determine if it is colorizable.
|
|
|
|
-TERM Eterm
|
|
|
|
-TERM ansi
|
2016-12-01 13:26:30 +00:00
|
|
|
-TERM *color*
|
2016-06-17 15:07:27 +00:00
|
|
|
-TERM con[0-9]*x[0-9]*
|
|
|
|
-TERM cons25
|
|
|
|
-TERM console
|
|
|
|
-TERM cygwin
|
|
|
|
-TERM dtterm
|
|
|
|
-TERM gnome
|
|
|
|
-TERM hurd
|
|
|
|
-TERM jfbterm
|
|
|
|
-TERM konsole
|
|
|
|
-TERM kterm
|
|
|
|
-TERM linux
|
|
|
|
-TERM linux-c
|
|
|
|
-TERM mlterm
|
|
|
|
-TERM putty
|
|
|
|
-TERM rxvt*
|
|
|
|
-TERM screen*
|
|
|
|
-TERM st
|
|
|
|
-TERM terminator
|
|
|
|
-TERM tmux*
|
|
|
|
-TERM vt100
|
|
|
|
-TERM xterm*
|
|
|
|
+TERM *256color*
|
|
|
|
+TERM rxvt-unicode256
|
|
|
|
|
2019-03-11 10:40:45 +00:00
|
|
|
# Below are the color init strings for the basic file types.
|
|
|
|
# One can use codes for 256 or more colors supported by modern terminals.
|
|
|
|
@@ -45,29 +32,40 @@ TERM xterm*
|
2016-06-17 15:07:27 +00:00
|
|
|
# 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
|
|
|
|
+# Text color(256 colors mode) codes:
|
|
|
|
+# Valid syntax for text 256color is 38;5;<color number> , where color number
|
|
|
|
+# is number between 0 and 255.
|
|
|
|
+# You may find following command useful to search the best one for you:
|
|
|
|
+# for ((x=0; x<=255; x++));do echo -e "${x}:\033[38;5;${x}mcolor\033[000m";done
|
|
|
|
+# Background color(256 colors mode) codes:
|
|
|
|
+# Valid syntax for background 256color is 48;5;<color number> , where
|
|
|
|
+# color number is number between 0 and 255.
|
|
|
|
+# You may find following command useful to search the best one for you:
|
|
|
|
+# for ((x=0; x<=255; x++));do echo -e "${x}:\033[48;5;${x}mcolor\033[000m";done
|
|
|
|
+
|
|
|
|
#NORMAL 00 # no color code at all
|
|
|
|
#FILE 00 # regular file: use no color at all
|
|
|
|
RESET 0 # reset to "normal" color
|
|
|
|
-DIR 01;34 # directory
|
|
|
|
-LINK 01;36 # symbolic link. (If you set this to 'target' instead of a
|
|
|
|
+DIR 38;5;33 # directory
|
|
|
|
+LINK 38;5;51 # 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 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 ...
|
|
|
|
-MISSING 00 # ... and the files they point to
|
|
|
|
-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
|
|
|
|
+FIFO 40;38;5;11 # pipe
|
|
|
|
+SOCK 38;5;13 # socket
|
|
|
|
+DOOR 38;5;5 # door
|
|
|
|
+BLK 48;5;232;38;5;11 # block device driver
|
|
|
|
+CHR 48;5;232;38;5;3 # character device driver
|
|
|
|
+ORPHAN 48;5;232;38;5;9 # symlink to nonexistent file, or non-stat'able file ...
|
2019-07-16 11:04:35 +00:00
|
|
|
+MISSING 01;37;41 # ... and the files they point to
|
2016-06-17 15:07:27 +00:00
|
|
|
+SETUID 48;5;196;38;5;15 # file that is setuid (u+s)
|
|
|
|
+SETGID 48;5;11;38;5;16 # file that is setgid (g+s)
|
|
|
|
+CAPABILITY 48;5;196;38;5;226 # file with capability
|
|
|
|
+STICKY_OTHER_WRITABLE 48;5;10;38;5;16 # dir that is sticky and other-writable (+t,o+w)
|
|
|
|
+OTHER_WRITABLE 48;5;10;38;5;21 # dir that is other-writable (o+w) and not sticky
|
|
|
|
+STICKY 48;5;21;38;5;15 # dir with the sticky bit set (+t) and not other-writable
|
|
|
|
|
|
|
|
# This is for files with execute permission:
|
|
|
|
-EXEC 01;32
|
|
|
|
+EXEC 38;5;40
|
|
|
|
|
|
|
|
# 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.
|
|
|
|
diff --git a/DIR_COLORS.lightbgcolor b/DIR_COLORS.lightbgcolor
|
2020-02-28 14:25:43 +00:00
|
|
|
index 4316832..6402854 100644
|
2016-06-17 15:07:27 +00:00
|
|
|
--- a/DIR_COLORS.lightbgcolor
|
|
|
|
+++ b/DIR_COLORS.lightbgcolor
|
2017-03-09 08:57:09 +00:00
|
|
|
@@ -1,3 +1,9 @@
|
2016-06-17 15:07:27 +00:00
|
|
|
+# Configuration file for the color ls utility - modified for lighter backgrounds
|
|
|
|
+
|
|
|
|
+# 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.
|
2017-03-09 08:57:09 +00:00
|
|
|
+
|
|
|
|
# Configuration file for dircolors, a utility to help you set the
|
|
|
|
# LS_COLORS environment variable used by GNU ls with the --color option.
|
2016-06-17 15:07:27 +00:00
|
|
|
|
2017-03-09 08:57:09 +00:00
|
|
|
@@ -8,6 +14,9 @@
|
|
|
|
# The keywords COLOR, OPTIONS, and EIGHTBIT (honored by the
|
|
|
|
# slackware version of dircolors) are recognized but ignored.
|
2016-07-11 15:14:09 +00:00
|
|
|
|
2017-03-09 08:57:09 +00:00
|
|
|
+# For compatibility, the pattern "^COLOR.*none" is recognized as a way to
|
|
|
|
+# disable colorization. See https://bugzilla.redhat.com/1349579 for details.
|
|
|
|
+
|
2016-07-11 15:14:09 +00:00
|
|
|
# Below are TERM entries, which can be a glob patterns, to match
|
|
|
|
# against the TERM environment variable to determine if it is colorizable.
|
2017-03-09 08:57:09 +00:00
|
|
|
TERM Eterm
|
2019-03-11 10:40:45 +00:00
|
|
|
@@ -48,17 +57,17 @@ TERM xterm*
|
2016-06-17 15:07:27 +00:00
|
|
|
#NORMAL 00 # no color code at all
|
|
|
|
#FILE 00 # regular file: use no color at all
|
|
|
|
RESET 0 # reset to "normal" color
|
|
|
|
-DIR 01;34 # directory
|
|
|
|
-LINK 01;36 # symbolic link. (If you set this to 'target' instead of a
|
|
|
|
+DIR 00;34 # directory
|
|
|
|
+LINK 00;36 # 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 40;33 # pipe
|
|
|
|
-SOCK 01;35 # socket
|
|
|
|
-DOOR 01;35 # door
|
|
|
|
+SOCK 00;35 # socket
|
|
|
|
+DOOR 00;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 ...
|
|
|
|
-MISSING 00 # ... and the files they point to
|
2019-07-16 11:04:35 +00:00
|
|
|
+MISSING 01;37;41 # ... and the files they point to
|
2016-06-17 15:07:27 +00:00
|
|
|
SETUID 37;41 # file that is setuid (u+s)
|
|
|
|
SETGID 30;43 # file that is setgid (g+s)
|
|
|
|
CAPABILITY 30;41 # file with capability
|
2019-03-11 10:40:45 +00:00
|
|
|
@@ -67,7 +76,7 @@ OTHER_WRITABLE 34;42 # dir that is other-writable (o+w) and not sticky
|
2016-06-17 15:07:27 +00:00
|
|
|
STICKY 37;44 # dir with the sticky bit set (+t) and not other-writable
|
|
|
|
|
|
|
|
# This is for files with execute permission:
|
|
|
|
-EXEC 01;32
|
|
|
|
+EXEC 00;32
|
|
|
|
|
|
|
|
# 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.
|
|
|
|
--
|
2020-02-28 14:25:43 +00:00
|
|
|
2.21.1
|
2016-06-17 15:07:27 +00:00
|
|
|
|