Search code examples
macoslsoh-my-zsh

In OSX with oh-my-zsh installed, how to highlight the output of `ls` in oh-my-zsh with Solarized theme installed


I recently configured my terminal according to this blog. After followed it step by step, everything is OK but the colour of ls's outputs are grey.

I googled this problem and found this. It says that adding export LSCOLORS=gxfxbEaEBxxEhEhBaDaCaD to the .bash_profile will resolve this problem.

BUT, I use zsh with oh-my-zsh instead of bash. There is no bash_profile at ~. I also tried to add this environments variable to .zshrc, it didn't work unfortunately.

Another way to resolve this problem is to install coreutils packets and use GNU ls instead. However, I reluctantly to install this big packets just for a ls command.

How can I fix this problem.....


Solution

  • I finally surrendered to install GNU-ls instead...