【问题标题】:Retaining (zsh + prezto)'s color settings after aliasing混叠后保留 (zsh + prezto) 的颜色设置
【发布时间】:2017-01-15 00:26:34
【问题描述】:

所以我在 shell 中使用 zsh 和 prezto,我喜欢我配置颜色设置的方式(目录是青色等),但是当我尝试编写时:

    alias ls="ls -l"

到我的 .zshrc 并重新加载另一个 iterm2 窗口,别名命令:

ls works as ls -l

但在目录上没有任何预配置的颜色(它们是纯白色的)。有什么想法吗?

【问题讨论】:

  • 在 OS X 上,如果设置了 CLICOLOR 环境变量或在命令行上传递了 -G,则 ls 会显示颜色,如 ls -G。可能的颜色在 LSCOLORS 环境变量中设置。检查选项卡中未显示颜色的环境变量。

标签: macos zsh iterm2 prezto


【解决方案1】:

export CLICOLOR=1 添加到您的 .zshrc。

【讨论】:

    猜你喜欢
    • 2023-03-10
    • 2019-07-20
    • 1970-01-01
    • 2021-11-24
    • 1970-01-01
    • 2017-05-19
    • 2011-01-20
    • 1970-01-01
    • 2020-03-14
    相关资源
    最近更新 更多