add segment to indicate current shell type
This commit is contained in:
@@ -186,6 +186,22 @@
|
|||||||
"style": "powerline",
|
"style": "powerline",
|
||||||
"invert_powerline": true
|
"invert_powerline": true
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"type": "shell",
|
||||||
|
"style": "powerline",
|
||||||
|
"powerline_symbol": "\ue0b2",
|
||||||
|
"invert_powerline": true,
|
||||||
|
"foreground": "#ffffff",
|
||||||
|
"background": "#0077c2",
|
||||||
|
"properties": {
|
||||||
|
"mapped_shell_names": {
|
||||||
|
"pwsh": "\udb82\ude0a pwsh",
|
||||||
|
"bash": "\uebca bash",
|
||||||
|
"xonsh": "\uea85 xonsh",
|
||||||
|
"fish": "\uee41 fish"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"properties": {
|
"properties": {
|
||||||
"always_enabled": true,
|
"always_enabled": true,
|
||||||
@@ -193,27 +209,13 @@
|
|||||||
},
|
},
|
||||||
"template": " {{ if gt .Code 0 }}{{ reason .Code }}{{ else }}\uf42e{{ end }} ",
|
"template": " {{ if gt .Code 0 }}{{ reason .Code }}{{ else }}\uf42e{{ end }} ",
|
||||||
"foreground": "#d3d7cf",
|
"foreground": "#d3d7cf",
|
||||||
"powerline_symbol": "\ue0b2",
|
|
||||||
"background": "#000000",
|
"background": "#000000",
|
||||||
"type": "status",
|
"type": "status",
|
||||||
"style": "powerline",
|
"style": "diamond",
|
||||||
"background_templates": [
|
"background_templates": [
|
||||||
"{{ if gt .Code 0 }}#cc2222{{ end }}"
|
"{{ if gt .Code 0 }}#cc2222{{ end }}"
|
||||||
],
|
],
|
||||||
"invert_powerline": true
|
"invert_powerline": true
|
||||||
},
|
|
||||||
{
|
|
||||||
"properties": {
|
|
||||||
"cache_duration": "none",
|
|
||||||
"time_format": "3:04PM"
|
|
||||||
},
|
|
||||||
"trailing_diamond": "\ue0b0\u2500\u256e",
|
|
||||||
"template": " {{ .CurrentDate | date .Format }} \uf017 ",
|
|
||||||
"foreground": "#000000",
|
|
||||||
"background": "#d3d7cf",
|
|
||||||
"type": "time",
|
|
||||||
"style": "diamond",
|
|
||||||
"invert_powerline": true
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user