add segment to indicate current shell type

This commit is contained in:
Brennen Raimer
2024-11-14 23:46:32 -05:00
parent 1b4cdc89c1
commit 88a04522d1

View File

@@ -186,6 +186,22 @@
"style": "powerline",
"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": {
"always_enabled": true,
@@ -193,27 +209,13 @@
},
"template": " {{ if gt .Code 0 }}{{ reason .Code }}{{ else }}\uf42e{{ end }} ",
"foreground": "#d3d7cf",
"powerline_symbol": "\ue0b2",
"background": "#000000",
"type": "status",
"style": "powerline",
"style": "diamond",
"background_templates": [
"{{ if gt .Code 0 }}#cc2222{{ end }}"
],
"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
}
]
},