We Recommend

bash Cookbook: Solutions and Examples for bash Users bash Cookbook: Solutions and Examples for bash Users
bash Cookbook teaches shell scripting the way Unix masters practice the craft. It presents a variety of recipes and tricks for all levels of shell programmers so that anyone can become a proficient user of the most common Unix shell -- the bash shell -- and cygwin or other popular Unix emulation packages.


Posted By

mbadran on 06/16/08


Tagged

Shell Bash configuration


Versions (?)


My .dir_colors


Published in: Bash 


  1. COLOR tty
  2. OPTIONS -F -T 0
  3. # Below, there should be one TERM entry for each termtype that is colorizable
  4. TERM linux
  5. TERM console
  6. TERM con132x25
  7. TERM con132x30
  8. TERM con132x43
  9. TERM con132x60
  10. TERM con80x25
  11. TERM con80x28
  12. TERM con80x30
  13. TERM con80x43
  14. TERM con80x50
  15. TERM con80x60
  16. TERM cons25
  17. TERM xterm
  18. TERM rxvt
  19. TERM xterm-color
  20. TERM color-xterm
  21. TERM vt100
  22. TERM dtterm
  23. TERM color_xterm
  24. TERM ansi
  25. TERM screen
  26. TERM screen.linux
  27. TERM kon
  28. TERM kterm
  29. TERM gnome
  30. TERM konsole
  31.  
  32. EIGHTBIT 1
  33.  
  34. # Text color codes:
  35. # 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white
  36. # Background color codes:
  37. # 40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white
  38. NORMAL 00 # global default, although everything should be something.
  39. FILE 00 # normal file
  40. DIR 00;36 # directory
  41. LINK 00;35 # symbolic link
  42. FIFO 40;33 # pipe
  43. SOCK 01;35 # socket
  44. BLK 40;32;00 # block device driver
  45. CHR 40;32;00 # character device driver
  46. ORPHAN 01;05;37;41 # orphaned syminks
  47. MISSING 01;05;37;41 # ... and the files they point to
  48. # This is for files with execute permission:
  49. EXEC 00;33
  50.  
  51. # List any file extensions like '.gz' or '.tar' that you would like ls
  52. # to colorize below. Put the extension, a space, and the color init string.
  53. # (and any comments you want to add after a '#')
  54. .cmd 00;32 # executables (bright green)
  55. .exe 00;32
  56. .com 00;32
  57. .btm 00;32
  58. .bat 00;32
  59. .sh 00;32
  60. .csh 00;32
  61. .tar 00;31 # archives or compressed (bright red)
  62. .tgz 00;31
  63. .arj 00;31
  64. .taz 00;31
  65. .lzh 00;31
  66. .zip 00;31
  67. .z 00;31
  68. .Z 00;31
  69. .gz 00;31
  70. .bz2 00;31
  71. .bz 00;31
  72. .tz 00;31
  73. .rpm 00;31
  74. .cpio 00;31
  75. .jpg 00;35 # image formats
  76. .gif 00;35
  77. .bmp 00;35
  78. .xbm 00;35
  79. .xpm 00;35
  80. .png 00;35
  81. .tif 00;35

Report this snippet 

You need to login to post a comment.