}
if [[ -d ~/org ]]; then
- # 44 seems to be the number of color escape characters used by grep
- todo | cut -c-$((COLUMNS + 44))
+ org-agenda
fi
if (( $+commands[checkupdates] )); then
kercmp -q || short "linux" "$(kercmp)"
fi
+if (( $+commands[systemctl] )); then
+ if (( $(systemctl show -P NFailedUnits) )); then
+ systemctl --no-pager list-units -q --failed
+ fi
+fi
+
# list sessions if possible
tmux list-sessions 2>/dev/null || true