core-system-scripts

Scripts submodule for the core-system repository
git clone https://ccx.te2000.cz/git/core-system-scripts
Log | Files | Refs

commit c06fc64ac6015c2d60539baf12262c27a1b3f081
parent 34a765097e2fd1b0039ec61e3353f5ff6df413bc
Author: Jan Pobrislo <ccx@webprojekty.cz>
Date:   Fri, 29 Jul 2022 02:33:38 +0200

Same but for longruns

Diffstat:
Mcommand/s | 8++++++--
1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/command/s b/command/s @@ -110,14 +110,18 @@ show_oneshots() { show_longruns() { local -a sv_stat fmt_active=( '%F{yellow}%BA%b%f' '%F{cyan}I%f' '%F{magenta}-%f' ) local -A fmt_up=( up '%F{green}%BU%b%f' down '%F{red}D%f' starting '%F{magenta}%B?%b%f' err '%K{red}X%k' ) - local s state active + local s state active pre post=%s for s state in "${(@kv)service_stat}"; do if (($+service_type[$s])); then active=${service_active[$s]:-2} else active=3 fi - printf "%s %s" ${(%)fmt_up[$state]}${(%)fmt_active[$active]} $s + pre='' + if (($+service_active[$s] ^^ $service_in_bundle[$s//$default_bundle])); then + pre='%S' + fi + printf "%s %s" ${(%)fmt_up[$state]}${(%)fmt_active[$active]} ${(%)pre}$s${(%)post} print_service_bundles $s done }