![]() ![]() ![]() # Below are TERM entries, which can be a glob patterns, to match # slackware version of dircolors) are recognized but ignored. # The keywords COLOR, OPTIONS, and EIGHTBIT (honored by the ![]() # are permitted provided the copyright notice and this notice are preserved. # Copying and distribution of this file, with or without modification, # Copyright (C) 1996-2020 Free Software Foundation, Inc. # LS_COLORS environment variable used by GNU ls with the -color option. # Configuration file for dircolors, a utility to help you set the I think that it is not pretty but is it the way I should do this?Īnd if I want to change for example mkv highlighting I need to change value mkv=01 35 to something else? Put the output of dircolors to bashrc in format:Įxport LS_COLORS=.[here is dircolors -b output Generate colors for LS_COLORS by running dircolors -b Is this the correct (and maybe default) way to set ls colors?: avi and jpg are having the same values so probably it's normal. My files (txt, jpg, mkv, avi, pdf) have pin/magenta color But once you use LS_COLORS, you'll want to configure your terminal so that those color instructions generate colors you prefer. If you don't use LS_COLORS, it doesn't matter how your terminal is configured to map color instructions to actual colors becuase nothing is sending it color instructions. But you can configure your terminal to change the exact shades of these colors used. In fact, the terminal can associate any color at all with a given number, but there are de-facto standards for the first 16 colors that 1 = (some shade of) red, 2 = green, 3 = yellow, etc. The xcfe terminal determines what colors these numbers actually represent. These codes range from 0-255, though most often people would use 0-15 for most of their LS_COLORS settings. The ls program sends numerical codes representing the colors. ![]() In other words 'ls' doesn't actually present any colors at all, it just sends instructions to the terminal to show colors. the 'ls' program uses the environment variable LS_COLORS to determine which color codes to emit (if and only if a -color or related flag is passed to ls). If I don't use LC_COLORS and change xfce terminal colors (color tab in xfce4-terminal settings) nothing is going on.Ĭorrect, except it's L S_COLORS. My videos (avi,mkv.,), images(jpg,png) have the same dirty pinkish color and documents(pdf,txt) are gray and some zst archives are similar to movies and images bud darker. It seems to me that it should set colors temporarily because LS_COLORS variable is being set and at the end there is export commandīut when I ls my Videos directory everything is gray. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |