diff options
author | Jim Meyering <meyering@redhat.com> | 2008-02-16 23:06:12 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2008-02-17 11:16:18 +0100 |
commit | 5b9f908ce39741654c8a1eaee5caf2d369d33816 (patch) | |
tree | 9c8db9e1813a6b8076bf73b06bb1e557e0730610 | |
parent | 483297d5ddaea930d61da1da9c3f052cbd3c3810 (diff) | |
download | coreutils-5b9f908ce39741654c8a1eaee5caf2d369d33816.tar.xz |
Adjust dircolors to match ls.c.
* src/dircolors.hin: comment out NORMAL and FILE, define RESET.
* src/dircolors.c (slack_codes) Add "RESET".
(ls_codes): Add "rs".
-rw-r--r-- | src/dircolors.c | 6 | ||||
-rw-r--r-- | src/dircolors.hin | 5 |
2 files changed, 6 insertions, 5 deletions
diff --git a/src/dircolors.c b/src/dircolors.c index 5a5bf6e80..2a9007571 100644 --- a/src/dircolors.c +++ b/src/dircolors.c @@ -1,5 +1,5 @@ /* dircolors - output commands to set the LS_COLOR environment variable - Copyright (C) 1996-2007 Free Software Foundation, Inc. + Copyright (C) 1996-2008 Free Software Foundation, Inc. Copyright (C) 1994, 1995, 1997, 1998, 1999, 2000 H. Peter Anvin This program is free software: you can redistribute it and/or modify @@ -59,7 +59,7 @@ static struct obstack lsc_obstack; static const char *const slack_codes[] = { - "NORMAL", "NORM", "FILE", "DIR", "LNK", "LINK", + "NORMAL", "NORM", "FILE", "RESET", "DIR", "LNK", "LINK", "SYMLINK", "ORPHAN", "MISSING", "FIFO", "PIPE", "SOCK", "BLK", "BLOCK", "CHR", "CHAR", "DOOR", "EXEC", "LEFT", "LEFTCODE", "RIGHT", "RIGHTCODE", "END", "ENDCODE", "SUID", "SETUID", "SGID", "SETGID", "STICKY", @@ -68,7 +68,7 @@ static const char *const slack_codes[] = static const char *const ls_codes[] = { - "no", "no", "fi", "di", "ln", "ln", "ln", "or", "mi", "pi", "pi", + "no", "no", "fi", "rs", "di", "ln", "ln", "ln", "or", "mi", "pi", "pi", "so", "bd", "bd", "cd", "cd", "do", "ex", "lc", "lc", "rc", "rc", "ec", "ec", "su", "su", "sg", "sg", "st", "ow", "ow", "tw", "tw", NULL }; diff --git a/src/dircolors.hin b/src/dircolors.hin index 3fb5a2f36..e60e11c6f 100644 --- a/src/dircolors.hin +++ b/src/dircolors.hin @@ -63,8 +63,9 @@ TERM xterm-debian # 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 -NORMAL 00 # global default, although everything should be something. -FILE 00 # normal file +#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 # numerical value, the color is as for the file pointed to.) |