feat(systemd): add support for user units in prompt (#11417)

This commit is contained in:
the.brain.w 2022-12-30 11:52:18 +01:00 committed by GitHub
parent a3c579bf27
commit 55e4e6c73b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -107,6 +107,8 @@ function systemd_prompt_info {
if systemctl is-active "$unit" &>/dev/null; then
echo -n "$ZSH_THEME_SYSTEMD_PROMPT_ACTIVE"
elif systemctl --user is-active "$unit" &>/dev/null; then
echo -n "$ZSH_THEME_SYSTEMD_PROMPT_ACTIVE"
else
echo -n "$ZSH_THEME_SYSTEMD_PROMPT_NOTACTIVE"
fi