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