【问题标题】:Heredoc with powerline带电力线的 Heredoc
【发布时间】:2021-08-12 02:14:48
【问题描述】:

当我尝试将heredocpowerline 一起使用时,每个新行之前都会出现空白段: 我怎样才能修复它,使它看起来像这样:

【问题讨论】:

  • 检查PS2 的值。反正不是编程问题。

标签: bash heredoc powerline


【解决方案1】:

只需为continuation(文件~/.config/powerline/themes/shell/continuation.json)创建一个主题,内容如下:

{
    "segments": {
        "left": [
            {
                "type": "string",
                "contents": ">",
                "highlight_groups": ["continuation"]
            }
        ]
    }
}

结果如下:

【讨论】:

    猜你喜欢
    • 2013-01-28
    • 2019-10-14
    • 2017-09-02
    • 1970-01-01
    • 1970-01-01
    • 2015-08-31
    • 2022-06-15
    • 2015-12-16
    • 2016-12-12
    相关资源
    最近更新 更多