mirror of
https://github.com/cupcakearmy/dotfiles.git
synced 2024-12-22 16:26:32 +00:00
exit code
This commit is contained in:
parent
a57d8a5f42
commit
cee1be33d1
@ -73,12 +73,13 @@ blocks:
|
|||||||
|
|
||||||
# STATIC UTILITY
|
# STATIC UTILITY
|
||||||
- type: exit
|
- type: exit
|
||||||
template: "{{ .Code }}"
|
template: "{{ if gt .Code 0 }}\uf00d {{ .Code }} {{ .Meaning }}{{ else }}\uf42e{{ end }}"
|
||||||
properties:
|
properties:
|
||||||
always_enabled: true
|
always_enabled: true
|
||||||
<<: *diamond_prefix
|
<<: *diamond_prefix
|
||||||
background: "p:main-10"
|
|
||||||
foreground: "p:main-70"
|
foreground: "p:main-70"
|
||||||
|
background_templates:
|
||||||
|
- "{{ if gt .Code 0 }}p:error-0{{ else }}p:main-10{{ end }}"
|
||||||
|
|
||||||
- type: executiontime
|
- type: executiontime
|
||||||
properties:
|
properties:
|
||||||
|
Loading…
Reference in New Issue
Block a user