>>>>> "Carl" == Carl Johnson <[EMAIL PROTECTED]> writes:
Carl> I have XTerm handling colors, and 'ls' will also generate Carl> colors, but only for file types such as directories and Carl> executables. The 'dircolors' executable just sets up Carl> "LS_COLORS=''", which isn't very useful. The documentation for Carl> 'dircolors' refers to using 'dircolors --print-data-base' for Carl> help on what format to use, so I saved the output and tried Carl> running dircolors on it, but it still sets LS_COLORS to a null Carl> string. Does anybody have any information on how to get 'ls' Carl> to colorize files by file name, such as the old color-ls used Carl> to do? Unless I am completely missing something obvious, it Carl> looks like either 'dircolors' doesn't work, or the Carl> documentation is completely wrong (this is running on Debian Carl> 1.2). You have to give dircolors a file to look at to create it's database. I have the following file in my home directory, and run dircolors as: eval `dircolors $HOME/.dir_colors` Jim ---------.dir_colors # Configuration file for the color 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. # 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 all # Below, there should be one TERM entry for each termtype that is colorizable TERM linux TERM screen TERM console TERM con132x25 TERM con132x30 TERM con132x43 TERM con132x60 TERM con80x25 TERM con80x28 TERM con80x30 TERM con80x43 TERM con80x50 TERM con80x60 TERM xterm TERM vt100 # 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 NORMAL 00 # global default, although everything should be something. FILE 00 # normal file DIR 01;10;37;45 # directory LINK 01;36 # symbolic link FIFO 40;33 # pipe SOCK 01;35 # socket BLK 41;30;01 # block device driver CHR 40;33;01 # character device driver ORPHAN 01;05;37;41 # orphaned syminks MISSING 01;05;37;41 # ... and the files they point to # This is for files with execute permission: EXEC 01;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. # (and any comments you want to add after a '#') .cmd 01;32 # executables (bright green) .exe 01;32 .EXE 01;32 .com 01;32 .COM 01;32 .btm 01;32 .bat 01;32 .BAT 01;32 .tar 01;37;41 # archives or compressed (bright white on red) .tgz 01;37;41 .tpz 01;37;41 .arj 01;37;41 .taz 01;37;41 .lzh 01;37;41 .zip 01;37;41 .z 01;37;41 .Z 01;37;41 .gz 01;37;41 .zoo 01;37;41 .rpm 01;37;41 .deb 01;37;41 .uu 01;37;41 .tz 01;37;41 .jpg 01;37;44 # image formats (bright white on blue) .gif 01;37;44 .bmp 01;37;44 .xbm 01;37;44 .xpm 01;37;44 .png 01;37;44 .tiff 01;37;44 .tif 01;37;44 .ps 01;37;44 .epsf 01;37;44 .ras 01;37;44 .tga 01;37;44 .fts 01;37;44 .pm 01;37;44 .rgb 01;37;44 .ppm 01;37;44 .pnm 01;37;44 .pgm 01;37;44 .pbm 01;37;44 #di=1;10;35:ln=1;36:pi=40;33:so=1;35:bd=41;30;1:cd=40;33;1:ex=1;32: #*.cmd=1;32:*.exe=1;32:*.com=1;32:*.btm=1;32:*.bat=1;32: #*.tar=1;31:*.tgz=1;31:*.tpz=1;31:*.taz=1;31:*.arj=1;31:*.lzh=1;31: #*.zip=1;31:*.tz=1;31:*.z=1;31:*.Z=1;31:*.gz=1;31:*.zoo=1;31:*.rpm=1;31: #*.jpg=1;34:*.gif=1;34:*.bmp=1;34:*.xpm=1;34:*.xbm=1;34:*.png=1;34 -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED]