V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Joysisyphus
V2EX  ›  macOS

Iterm 2 如何修改字体颜色?

  •  
  •   Joysisyphus · 2014-05-10 16:51:58 +08:00 · 34276 次点击
    这是一个创建于 3643 天前的主题,其中的信息可能已经有所发展或是发生改变。
    我用的是iterm2+zsh
    在iterm2-preference->profiles->color中加载了别的配色方案,但是除了背景颜色变了之外,字体颜色还是最初的白色
    不用别人的方案,自己想直接修改字体,字体的大小/样式都可以修改,就是颜色改不了
    如何修改字体颜色?
    12 条回复    2016-11-27 04:53:40 +08:00
    jamesxu
        1
    jamesxu  
       2014-05-10 17:13:27 +08:00
    在 Preference -> Profiles -> Colors -> Basic Colors -> Foreground 里改
    Joysisyphus
        2
    Joysisyphus  
    OP
       2014-05-10 17:17:55 +08:00
    @jamesxu
    谢谢!
    那配色方案是怎么回事呢?比如Solarized?
    我看bash的话是需要在.bash_profile中加入几行代码,但是网上没有对zsh的
    peartail
        3
    peartail  
       2014-05-10 17:21:56 +08:00
    @Joysisyphus Google zsh theme.
    Joysisyphus
        4
    Joysisyphus  
    OP
       2014-05-10 17:27:51 +08:00
    @peartail
    我改动zsh theme也不会改变配色,会改变比如字符配置,比如用户名的表现形式之类的
    简而言之,无论是改动zsh theme,还是iterm配色,都不行
    josephpei
        5
    josephpei  
       2014-05-10 17:51:02 +08:00
    krafttuc
        6
    krafttuc  
       2014-05-10 17:53:27 +08:00
    你看看Profiles -> your profile -> Terminal 下面 Report Terminal Type 类型

    我的是 xterm-256color
    Joysisyphus
        7
    Joysisyphus  
    OP
       2014-05-10 17:55:57 +08:00
    @krafttuc
    恩,这个我改过的,但还是不行
    Joysisyphus
        8
    Joysisyphus  
    OP
       2014-05-10 19:31:21 +08:00
    @josephpei
    谢谢
    Owenjia
        9
    Owenjia  
       2014-05-10 22:02:51 +08:00
    我是这样改的,不知道在 Iterm2 里能不能用~~
    eval `dircolors path/to/dircolors.ansi-dark`
    https://github.com/seebi/dircolors-solarized
    Joysisyphus
        10
    Joysisyphus  
    OP
       2014-05-10 23:39:38 +08:00
    @Owenjia
    谢谢,我试试
    tizac
        11
    tizac  
       2015-03-23 21:55:34 +08:00
    在 ~/.bash_profile 增加
    export CLICOLOR=1
    ETHANAIR
        12
    ETHANAIR  
       2016-11-27 04:53:40 +08:00
    All you need to do is reduce the minimum contrast by moving the slider to the left. Reducing the minimum contrast allows colors other than black and white to be used for the text. Here's why:

    A higher minimum contrast will force the text and background to be farther apart in terms of brightness. So if you have a black background, a higher minimum contrast will force the text to be closer to white. Similarly, if you have a white background, a higher minimum contrast will force the text to be closer to black.

    http://superuser.com/questions/353396/how-to-set-color-terminal-for-iterm2
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2615 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 13:59 · PVG 21:59 · LAX 06:59 · JFK 09:59
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.