Changing LSCOLORS in WSL2 Ubuntu with oh my zsh doesn't do anything

1.8k views Asked by At

I have Ubuntu installed through WSL2 and I also am using zsh as my shell with oh my zsh installed. I am trying to change the default ls colours by adding export LSCOLORS=ExFxBxDxBxegedabagacad in my .zshrc, but it doesn't change any of the default ls colours. I made sure to source the .zshrc file and restarted my terminal as well, but it didn't do anything. In addition, the export LSCOLORS line is below this line: source $ZSH/oh-my-zsh.sh. Is it possible that oh my zsh is overriding the ls colors that I set?

1

There are 1 answers

3
apena On BEST ANSWER

Put the LS_COLORS export in your ~.zshrc file not oh-my-zsh.sh. So it would look something like this:

LS_COLORS="ow=01;36;40" && export LS_COLORS