bssanchez93

Color in terminal (Linux)

Aug 20th, 2014
349
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.49 KB | None | 0 0
  1. # Configuration file for dircolors, a utility to help you set the
  2. # LS_COLORS environment variable used by GNU ls with the --color option.
  3.  
  4. # The keywords COLOR, OPTIONS, and EIGHTBIT (honored by the
  5. # slackware version of dircolors) are recognized but ignored.
  6.  
  7. # Below, there should be one TERM entry for each termtype that is colorizable
  8. TERM linux
  9. TERM linux-c
  10. TERM mach-color
  11. TERM console
  12. TERM con132x25
  13. TERM con132x30
  14. TERM con132x43
  15. TERM con132x60
  16. TERM con80x25
  17. TERM con80x28
  18. TERM con80x30
  19. TERM con80x43
  20. TERM con80x50
  21. TERM con80x60
  22. TERM dtterm
  23. TERM xterm
  24. TERM xterm-termite
  25. TERM xterm-color
  26. TERM xterm-debian
  27. TERM rxvt
  28. TERM rxvt-unicode-256color
  29. TERM screen
  30. TERM screen-w
  31.  
  32.  
  33. # Below are the color init strings for the basic file types. A color init
  34. # string consists of one or more of the following numeric codes:
  35. # Attribute codes:
  36. # 00=none 01=bold 04=underscore 05=blink 07=reverse 08=concealed
  37. # Text color codes:
  38. # 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white
  39. # Background color codes:
  40. # 40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white
  41. NORMAL 00;37 # global default, although everything should be something.
  42. FILE 00;37 # normal file
  43. DIR 00;34 # directory
  44. LINK 01;36 # symbolic link. (If you set this to 'target' instead of a
  45. # numerical value, the color is as for the file pointed to.)
  46. FIFO 40;33 # pipe
  47. SOCK 01;35 # socket
  48. DOOR 01;35 # door
  49. BLK 40;33;01 # block device driver
  50. CHR 40;33;01 # character device driver
  51. ORPHAN 40;31;01 # symlink to nonexistent file
  52.  
  53. # This is for files with execute permission:
  54. EXEC 00;32
  55.  
  56. # List any file extensions like '.gz' or '.tar' that you would like ls
  57. # to colorize below. Put the extension, a space, and the color init string.
  58. # (and any comments you want to add after a '#')
  59.  
  60. # If you use DOS-style suffixes, you may want to uncomment the following:
  61. #.cmd 01;32 # executables (bright green)
  62. #.exe 01;32
  63. #.com 01;32
  64. #.btm 01;32
  65. #.bat 01;32
  66.  
  67. .sh 00;33
  68. .cpp 00;33
  69. .java 00;33
  70. .c 00;33
  71. .py 00;33
  72. .h 00;36
  73. .pdf 00;31
  74.  
  75. .tar 01;35 # archives or compressed (bright red)
  76. .tgz 01;35
  77. .arj 01;35
  78. .taz 01;35
  79. .lzh 01;35
  80. .zip 01;35
  81. .z 01;35
  82. .Z 01;35
  83. .gz 01;35
  84. .bz2 01;35
  85. .deb 01;35
  86. .rpm 01;35
  87. .jar 01;35
  88. .tbz 01;35
  89. .pkg.tar.gz 01;31;35
  90.  
  91. # image formats
  92. .jpg 00;32
  93. .jpeg 00;32
  94. .gif 00;32
  95. .bmp 00;32
  96. .png 00;32
  97.  
  98. # movie formats
  99. .mp4 01;36
  100. .mpg 01;36
  101. .mpeg 01;36
  102. .wmv 01;36
  103. .avi 01;36
  104.  
  105.  
  106. # audio formats
  107. .mp3 01;36
  108. .flac 01;36
Advertisement
Add Comment
Please, Sign In to add comment