X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/e6863be5d96bc2f3e6f64b91a55061ca25613d06..a427a09b741cecbef21644e1b10c97bd9a074c02:/zsh/lib/motd.zsh?ds=sidebyside 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