trapd00r / LS_COLORS

A collection of LS_COLORS definitions; needs your contribution!
Other
2.11k stars 260 forks source link

README .dircolors vs LS_COLORS #122

Closed godfrey-cw closed 4 years ago

godfrey-cw commented 5 years ago

The install instructions say

wget https://raw.github.com/trapd00r/LS_COLORS/master/LS_COLORS -O $HOME/.dircolors
echo 'eval $(dircolors -b $HOME/.dircolors)' >> $HOME/.bashrc
. $HOME/.bashrc

Which is correct (it works). But the instruction above them says to add

eval $( dircolors -b $HOME/LS_COLORS )

to the .bashrc, Which doesn't work, unless of course you pair it with

wget https://raw.github.com/trapd00r/LS_COLORS/master/LS_COLORS -O $HOME/LS_COLORS
rpdelaney commented 5 years ago

Based on some user testing it seems the install instructions are still counter-intuitive. In the installation we refer to the file as .dircolors initially, which is confusing, because a user has not yet seen that in the next code block we download the file using -O .dircolors.

I think we should either:

  1. rename the LS_COLORS file to .dircolors, or
  2. use LS_COLORS consistently in the installation instructions.
pickfire commented 5 years ago

I think file should be named to .dircolors.

dnedrow commented 4 years ago

@pickfire It seems strange that the instructions rename the file to .dircolors. If you really want to hide the file, wouldn't .LS_COLORS make it easier for someone to find?

I think it would be far preferable to use LS_COLORS consistently in the documentation.

Additionally, @rpdelaney has suggested in another PR that shell files meant to be sourced should go under .local/share. That seems like the place LS_COLORS should go if anywhere.

My preference is .LS_COLORS. I don't like things be squirreled away under .local. I nearly always forget to look there when looking for sources.

rpdelaney commented 4 years ago

Consistency seems to make sense and it would be good to avoid overloading "dircolors" because we are not dircolors.

We can discuss where the file should go over in #136 but I think if you don't want to follow the XDG spec then you can edit the installation script or export $XDG_DATA_HOME='$HOME' in your local environment.

dnedrow commented 4 years ago

Fantastic.