From 55e4e6c73b2bb067974c6d49ba9da2ba1ee3295c Mon Sep 17 00:00:00 2001 From: "the.brain.w" Date: Fri, 30 Dec 2022 11:52:18 +0100 Subject: [PATCH] feat(systemd): add support for user units in prompt (#11417) --- plugins/systemd/systemd.plugin.zsh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/systemd/systemd.plugin.zsh b/plugins/systemd/systemd.plugin.zsh index 7afd2be58..1270bea0e 100644 --- a/plugins/systemd/systemd.plugin.zsh +++ b/plugins/systemd/systemd.plugin.zsh @@ -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