简体   繁体   English

在安装了oh-my-zsh的OSX中,如何在安装了Solarized主题的oh-my-zsh中突出显示`ls`的输出

[英]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 . 但是,我使用zshoh-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.

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