Iterm 2 如何修改字体颜色?

2014-05-10 16:51:58 +08:00
 Joysisyphus
我用的是iterm2+zsh
在iterm2-preference->profiles->color中加载了别的配色方案,但是除了背景颜色变了之外,字体颜色还是最初的白色
不用别人的方案,自己想直接修改字体,字体的大小/样式都可以修改,就是颜色改不了
如何修改字体颜色?
34450 次点击
所在节点    macOS
12 条回复
jamesxu
2014-05-10 17:13:27 +08:00
在 Preference -> Profiles -> Colors -> Basic Colors -> Foreground 里改
Joysisyphus
2014-05-10 17:17:55 +08:00
@jamesxu
谢谢!
那配色方案是怎么回事呢?比如Solarized?
我看bash的话是需要在.bash_profile中加入几行代码,但是网上没有对zsh的
peartail
2014-05-10 17:21:56 +08:00
@Joysisyphus Google zsh theme.
Joysisyphus
2014-05-10 17:27:51 +08:00
@peartail
我改动zsh theme也不会改变配色,会改变比如字符配置,比如用户名的表现形式之类的
简而言之,无论是改动zsh theme,还是iterm配色,都不行
josephpei
2014-05-10 17:51:02 +08:00
krafttuc
2014-05-10 17:53:27 +08:00
你看看Profiles -> your profile -> Terminal 下面 Report Terminal Type 类型

我的是 xterm-256color
Joysisyphus
2014-05-10 17:55:57 +08:00
@krafttuc
恩,这个我改过的,但还是不行
Joysisyphus
2014-05-10 19:31:21 +08:00
@josephpei
谢谢
Owenjia
2014-05-10 22:02:51 +08:00
我是这样改的,不知道在 Iterm2 里能不能用~~
eval `dircolors path/to/dircolors.ansi-dark`
https://github.com/seebi/dircolors-solarized
Joysisyphus
2014-05-10 23:39:38 +08:00
@Owenjia
谢谢,我试试
tizac
2015-03-23 21:55:34 +08:00
在 ~/.bash_profile 增加
export CLICOLOR=1
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

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/111911

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX