[英]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. 逐步执行之后,一切正常,但
ls
输出的颜色为灰色。
I googled this problem and found this . 我用谷歌搜索了这个问题并找到了这个 。 It says that adding
export LSCOLORS=gxfxbEaEBxxEhEhBaDaCaD
to the .bash_profile
will resolve this problem. 它说在
.bash_profile
中添加export LSCOLORS=gxfxbEaEBxxEhEhBaDaCaD
可以解决此问题。
BUT, I use zsh
with oh-my-zsh
instead of bash
. 但是,我使用
zsh
与oh-my-zsh
代替bash
。 There is no bash_profile
at ~
. 没有
bash_profile
的~
。 I also tried to add this environments variable to .zshrc
, it didn't work unfortunately. 我还尝试将此环境变量添加到
.zshrc
,但不幸的是它没有起作用。
Another way to resolve this problem is to install coreutils
packets and use GNU ls
instead. 解决此问题的另一种方法是安装
coreutils
数据包并改用GNU ls
。 However, I reluctantly to install this big packets just for a ls
command. 但是,我很不情愿仅为
ls
命令安装此大数据包。
How can I fix this problem..... 我该如何解决这个问题.....
我终于投降了,改为安装GNU-ls
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.