V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
Joysisyphus
V2EX  ›  macOS

Iterm 2 如何修改字体颜色?

  •  
  •   Joysisyphus · May 10, 2014 · 35476 views
    This topic created in 4377 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
        1
    jwk345  
       May 10, 2014
    在 Preference -> Profiles -> Colors -> Basic Colors -> Foreground 里改
    Joysisyphus
        2
    Joysisyphus  
    OP
       May 10, 2014
    @jamesxu
    谢谢!
    那配色方案是怎么回事呢?比如Solarized?
    我看bash的话是需要在.bash_profile中加入几行代码,但是网上没有对zsh的
    peartail
        3
    peartail  
       May 10, 2014
    @Joysisyphus Google zsh theme.
    Joysisyphus
        4
    Joysisyphus  
    OP
       May 10, 2014
    @peartail
    我改动zsh theme也不会改变配色,会改变比如字符配置,比如用户名的表现形式之类的
    简而言之,无论是改动zsh theme,还是iterm配色,都不行
    krafttuc
        6
    krafttuc  
       May 10, 2014
    你看看Profiles -> your profile -> Terminal 下面 Report Terminal Type 类型

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