OSX终端颜色

时间:2014-12-07 01:29:06

标签: macos colors terminal

我在Macbook上使用终端。我更改了bash配置文件,以便终端可以显示颜色。我用了代码:

export CLICOLOR=1 
<{1>}中的

但是当我以root身份登录时,我的终端仍然没有显示颜色。所以当我以root身份登录时,我想知道如何在终端中显示颜色?

1 个答案:

答案 0 :(得分:0)

&#34; .bash_profile&#34;用于登录shell。

&#34; .bashrc&#34;是用于交互式非登录shell的文件。

如果您想要&#34; CLICOLOR&#34;要拾取的环境变量,也许你应该修改&#34; .bashrc&#34;要进行该导出,或you should modify your ".bashrc" to match the answer to this closely related question

相关问题