core-system-scripts

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

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

Highlight services out of desired state

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

diff --git a/command/s b/command/s @@ -96,9 +96,13 @@ print_service_bundles() { show_oneshots() { local -a fmt_active=( '%F{yellow}%BA%b%f' '%F{cyan}I%f' ) - local s + local s pre post='%s' for s in $oneshots; do - printf "%s %s" ${(%)fmt_active[${service_active[$s]:-2}]} $s + pre='' + if (($+service_active[$s] ^^ $service_in_bundle[$s//$default_bundle])); then + pre='%S' + fi + printf "%s %s" ${(%)fmt_active[${service_active[$s]:-2}]} ${(%)pre}$s${(%)post} print_service_bundles $s done }