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

Ubuntu 16.04 下 Terminal 如何使用 Solarized 系列的配色?

  •  
  •   shutongxinq · 2016-09-18 18:38:06 +08:00 · 6386 次点击
    这是一个创建于 2782 天前的主题,其中的信息可能已经有所发展或是发生改变。

    Github 上有个一个repo可以给 Gnome terminal 设置 Solarized 系列的配色,但是这个配色无法达到 Mac 的 iTerm 里面对 Solarized Light 良好的兼容性(特别是 Solarized Light ),比如 ls 没有颜色(我用 oh my zsh,应该不用配置 dircolors 的),有兄台知道如何给 Gnome terminal 设上完美的 Solarized Light 让它和 macOS 上面一样吗?使用其他的 terminal 模拟器可以实现这样的的效果吗?

    在 Gnome terminal 里面的效果大致是 iTerm 里面把 Profile 里面 Text Tab 中的 Draw bold text i bright colors 勾上的效果,该有颜色的地方木有颜色 lol

    10 条回复    2016-09-19 15:27:50 +08:00
    halczy
        1
    halczy  
       2016-09-18 18:46:47 +08:00
    楼主是想要这种效果吗?
    oneisall
        2
    oneisall  
       2016-09-18 18:57:09 +08:00
    @halczy 好看
    shutongxinq
        3
    shutongxinq  
    OP
       2016-09-18 19:05:40 +08:00
    @halczy 是的,大致是这样的
    shutongxinq
        4
    shutongxinq  
    OP
       2016-09-18 19:06:56 +08:00
    @halczy 这是我在 iTerm2 时候登陆 Ubuntu 的服务器的样子,但是不知道 Gnome Terminal (或者其他 terminal 模拟器)怎么才能达到类似的效果...
    halczy
        5
    halczy  
       2016-09-18 19:16:41 +08:00
    @shutongxinq 自带的就应该是这个样子。

    在 Edit -> Profile Preferences -> Colors 里面把 Use colors from system theme 取消就应该有 Solarized Light 可以选。
    shutongxinq
        6
    shutongxinq  
    OP
       2016-09-18 20:34:24 +08:00
    @halczy 谢谢兄台,我之前已经试过了,但是颜色还是灰度的。你的 ls 是没有自定义就显示了这样的颜色吗?我的即使加了 ls --color=auto 之类的显示的颜色仍然是灰度的。
    bsns
        7
    bsns  
       2016-09-18 20:42:36 +08:00
    我记得系统源就有吧?
    jessun1990
        8
    jessun1990  
       2016-09-18 21:31:43 +08:00 via iPhone
    我在 terminal 和 guake 里,改用 oh my fish 。
    h3nng
        9
    h3nng  
       2016-09-19 15:16:07 +08:00
    这样?
    ![]( https://lh3.googleusercontent.com/OctRLHidSweGOHWloDa4p-91fq4P2J0Vokc78Bf8lIilAFqAjkZtLk7OvWubJdO-cGSmmRpIuus6jqo=w1863-h966)

    试试: eval `dircolors /.../dircolors-solarized/dircolors.256dark`
    h3nng
        10
    h3nng  
       2016-09-19 15:27:50 +08:00
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2219 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 07:01 · PVG 15:01 · LAX 00:01 · JFK 03:01
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.