简体   繁体   中英

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.....

我终于投降了,改为安装GNU-ls

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM