From: Samir Benmendil Date: Tue, 14 May 2024 21:45:11 +0000 (+0100) Subject: zsh/motd: print both --system and --user failed units X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/09f3f5655c6f4fe66620923572b96fc93ea946a6?ds=sidebyside zsh/motd: print both --system and --user failed units --- 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