ultra_bread

Members
  • Posts

    1
  • Joined

  • Last visited

Everything posted by ultra_bread

  1. I don't know why, but for some reason it didn't work to edit /etc/DIR_COLORS, /root/.dir_colors, or /root/.dircolors (but I think this does work on other linux systems I've used, so I'm stumped). What did work was to change the following line in my .bashrc: test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" to test -r ~/.dircolors && eval "$(dircolors -b | sed -E 's/30;42|34;42/01;33/g')" Here I'm just using sed to replace any occurrences of 30;42 or 34;42 in the default colors with 01;33 before doing eval to make the change. If your .bashrc doesn't have a section with this line, you can add the following chunk anywhere: # enable color support of ls and also add handy aliases if command -v dircolors &> /dev/null; then test -r ~/.dircolors && eval "$(dircolors -b | sed -E 's/30;42|34;42/01;33/g')" # I can't get the default line below to work on UNRAID but this works. #test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" alias ls='ls --color=auto --quoting-style=literal' #GNU coreutils version alias dir='dir --color=auto' alias vdir='vdir --color=auto' alias grep='grep --color=auto' alias fgrep='fgrep --color=auto' alias egrep='egrep --color=auto' fi