I have mounted a network share with NFS and when I do ls --color
it highlights the directories with green which is very hard to see. What LS_COLORS key do I have to change to change the highlight color? Also once this is done do I have to add something to my bashrc so that this takes effect on every login?
I'be finally figured this out and I needed to edit the OPEN_WRITABLE flag in the dircolors. To do this I followed these steps:
dircolors -p .dircolors
edit ~/.bashrc and add the following
# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
[ -e "$HOME/.dircolors" ] && DIR_COLORS="$HOME/.dircolors"
[ -e "$DIR_COLORS" ] || DIR_COLORS=""
eval "`dircolors -b $DIR_COLORS`"
alias ls='ls --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
fi
run source ~/.bashrc