From 09f3f5655c6f4fe66620923572b96fc93ea946a6 Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Tue, 14 May 2024 22:45:11 +0100 Subject: [PATCH] zsh/motd: print both --system and --user failed units --- zsh/lib/motd.zsh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/zsh/lib/motd.zsh b/zsh/lib/motd.zsh index a929b35..04dd32c 100644 --- a/zsh/lib/motd.zsh +++ b/zsh/lib/motd.zsh @@ -31,9 +31,8 @@ if (( $+commands[pacman] )); then fi if (( $+commands[systemctl] )); then - if (( $(systemctl show -P NFailedUnits) )); then - systemctl --no-pager list-units -q --failed - fi + systemctl --system --no-pager list-units -q --failed + systemctl --user --no-pager list-units -q --failed fi # list sessions if possible -- 2.48.1