Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • 23
    The default colors often seem to indicate the original author hates us and our eyes though... Commented Oct 10, 2013 at 20:00
  • 1
    Thanks. WHy do you sometimes write ~/.dirname, and sometimes ~/dircolors, and sometimes ~/.dircolors? are they supposed to be the same? Commented Mar 26, 2015 at 15:42
  • 1
    Thanks. Why eval "$(dircolors ~/dircolors)"; instead of more direct way such as dircolors ~/dircolors? Commented Oct 22, 2015 at 15:27
  • 1
    @Tim because dircolors only prints the settings, you need to eval it in order for them to be read. Commented Oct 22, 2015 at 15:58
  • 1
    @Tim dircolors ~/.dircolors will just read the .dircolors file and format it as a variable. The output is simply something like LS_COLORS='foo=bar:baz=gaz'. A variable and the value it is set to. In order for that to take effect, you need to actually set LS_COLORS to that value and that is what eval does. Commented Oct 22, 2015 at 23:05