Bash on Ubuntu on Windows: Can't change (some) directory colors
When ls -l displays windows files outside the wsl the other writable causes the green background. As Schmendrick van der Distel said, create a dircolors in your home directory. Then change STICKY_OTHER_WRITABLE and OTHER_WRITABLE as below to remove the background.
dircolors -p > ~/.dircolors
Change in .dircolors to these values:
STICKY_OTHER_WRITABLE 31;00 # dir that is sticky and other-writable (+t,o+w)
OTHER_WRITABLE 31;00 # dir that is other-writable (o+w) and not sticky
Restart bash
I've had the same problem and solved it in the following way:
In my ~/.bashrc
file I found the lines:
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias ls='ls --color=auto'
As I found no file named .dircolors
in my home-directory, I exported the standardconfiguration via dircolors -p > ~/.dircolors
Now I've changed the line DIR 01;36 # directory
to DIR 01;34 # directory
(changed the color from blue to cyan), saved the file and restarted the BashonWindows.
Hope it will help
Another option (or the only one that really worked for me) is to install the solarized-dark theme from https://github.com/neilpa/cmd-colors-solarized
(close/open the console window to activate)