X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/9849a8cd393e785763a75cab1ecc7f826ab90af3..09f3f5655c6f4fe66620923572b96fc93ea946a6:/zsh/lib/motd.zsh 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