带电力线的 Heredoc
Posted
技术标签:
【中文标题】带电力线的 Heredoc【英文标题】:Heredoc with powerline 【发布时间】:2021-08-12 02:14:48 【问题描述】:当我尝试将heredoc 与powerline 一起使用时,每个新行之前都会出现空白段: 我怎样才能修复它,使它看起来像这样:
【问题讨论】:
检查PS2
的值。反正不是编程问题。
【参考方案1】:
只需为continuation
(文件~/.config/powerline/themes/shell/continuation.json
)创建一个主题,内容如下:
"segments":
"left": [
"type": "string",
"contents": ">",
"highlight_groups": ["continuation"]
]
结果如下:
【讨论】:
以上是关于带电力线的 Heredoc的主要内容,如果未能解决你的问题,请参考以下文章