Joysisyphus
V2EX  ›  macOS

Iterm 2 如何修改字体颜色?

  •  
  •   Joysisyphus · May 10, 2014 · 36045 views
    This topic created in 4584 days ago, the information mentioned may be changed or developed.
    我用的是iterm2+zsh
    在iterm2-preference->profiles->color中加载了别的配色方案,但是除了背景颜色变了之外,字体颜色还是最初的白色
    不用别人的方案,自己想直接修改字体,字体的大小/样式都可以修改,就是颜色改不了
    如何修改字体颜色?
    12 replies  •  2016-11-27 04:53:40 +08:00
    jwk345
    jwk345
    May 10, 2014
    1
    在 Preference -> Profiles -> Colors -> Basic Colors -> Foreground 里改
    Joysisyphus
    Joysisyphus
    OP
    May 10, 2014
    2
    @jamesxu
    谢谢!
    那配色方案是怎么回事呢?比如Solarized?
    我看bash的话是需要在.bash_profile中加入几行代码,但是网上没有对zsh的
    peartail
    peartail
    May 10, 2014
    3
    @Joysisyphus Google zsh theme.
    Joysisyphus
    Joysisyphus
    OP
    May 10, 2014
    4
    @peartail
    我改动zsh theme也不会改变配色,会改变比如字符配置,比如用户名的表现形式之类的
    简而言之,无论是改动zsh theme,还是iterm配色,都不行
    krafttuc
    krafttuc
    May 10, 2014
    6
    你看看Profiles -> your profile -> Terminal 下面 Report Terminal Type 类型

    我的是 xterm-256color
    Joysisyphus
    Joysisyphus
    OP
    May 10, 2014
    7
    @krafttuc
    恩,这个我改过的,但还是不行
    Joysisyphus
    Joysisyphus
    OP
    May 10, 2014
    8
    @josephpei
    谢谢
    Owenjia
    Owenjia
    May 10, 2014
    9
    我是这样改的,不知道在 Iterm2 里能不能用~~
    eval `dircolors path/to/dircolors.ansi-dark`
    https://github.com/seebi/dircolors-solarized
    Joysisyphus
    Joysisyphus
    OP
    May 10, 2014
    10
    @Owenjia
    谢谢,我试试
    tizac
    tizac
    Mar 23, 2015
    11
    在 ~/.bash_profile 增加
    export CLICOLOR=1
    ETHANAIR
    ETHANAIR
    Nov 27, 2016
    12
    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
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2055 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 14:58 · PVG 22:58 · LAX 06:58 · JFK 09:58
    ♥ Do have faith in what you're doing.