=Better systemctl handling
This commit is contained in:
parent
64add644e5
commit
9dbfb53327
2 changed files with 1 additions and 19 deletions
|
@ -63,7 +63,7 @@
|
|||
"style": "powerline",
|
||||
"properties": {
|
||||
"shell": "bash",
|
||||
"command": "systemctl is-system-running || true"
|
||||
"command": "'[[ -n \"$(type -t systemctl)\" ]] && systemctl is-system-running || true'"
|
||||
},
|
||||
"template": "{{ if not (contains \"running\" .Output) }} {{ .Output }} {{ end }}"
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue