xonsh电力线绑定
xontrib-powerline-binding的Python项目详细描述
Xontrib电力线绑定
Powerline绑定到xonsh,因此您可以在xonsh
中使用现有的powerline
提示。在
安装
使用pip安装
pip install xontrib-powerline-binding
添加到您的.xonshrc
:
使用
使用powerline
来设置$PROMPT
和{
配置
将xonsh
(以及可选的xonshtoolbar
)部分添加到您的powerline
config.json
:
{
"ext": {
"xonsh": {
"theme": "mytheme"
},
"xonshtoolbar": {
"theme": "mytheme"
}
}
}
然后用您的主题配置创建themes/xonsh/mytheme.json
(和themes/xonshtoolbar/mytheme.json
)(请参见Powerline documentation)。
您可以在example-powerline-config
文件夹中找到我的示例电力线配置。在
额外部分
目前包括以下xonsh特定电力线段:
powerline_xonsh.exec_time
最后一个命令的执行时间。在
突出显示使用的组:exec_time
- 项目
标签: