【问题标题】:Fish Shell How to change the font colour of Auto-suggestion features?Fish Shell 如何更改自动提示功能的字体颜色?
【发布时间】:2021-06-25 09:12:46
【问题描述】:

可以更改鱼壳终端中自动建议功能的字体颜色吗? 我想用我自己的颜色定制所有这些 大家有什么建议吗?

Screenshot in my terminal

【问题讨论】:

    标签: terminal fish


    【解决方案1】:

    请参阅“Syntax highlighting variables”的文档部分:

    fish 用于语法高亮的颜色可以通过改变各种变量的值来配置。这些变量的值可以是 set_color 命令接受的颜色之一。 set_color 接受的修饰符开关,例如--bold、--dim、--italics、--reverse 和--underline。

    然后:

    fish_color_autosuggestion 自动建议(建议的命令其余部分)

    因此,要更改自动建议的颜色,请更改 $fish_color_autosuggestion,例如

    set -g fish_color_autosuggestion blue
    

    set -g fish_color_autosuggestion dd0f00
    

    【讨论】:

      猜你喜欢
      • 2017-08-14
      • 2017-08-19
      • 1970-01-01
      • 2018-09-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多