diff options
author | the.brain.w <the.brain.w@gmail.com> | 2022-12-30 11:52:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-30 11:52:18 +0100 |
commit | 55e4e6c73b2bb067974c6d49ba9da2ba1ee3295c (patch) | |
tree | 40921a628b7bd1acdbd93d75f22e597b782c329a /plugins/systemd/systemd.plugin.zsh | |
parent | a3c579bf27b34942d4c6ad64e7cfd75788b05ea3 (diff) | |
download | zsh-55e4e6c73b2bb067974c6d49ba9da2ba1ee3295c.tar.gz zsh-55e4e6c73b2bb067974c6d49ba9da2ba1ee3295c.tar.bz2 zsh-55e4e6c73b2bb067974c6d49ba9da2ba1ee3295c.zip |
feat(systemd): add support for user units in prompt (#11417)
Diffstat (limited to 'plugins/systemd/systemd.plugin.zsh')
-rw-r--r-- | plugins/systemd/systemd.plugin.zsh | 2 |
1 files changed, 2 insertions, 0 deletions
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 |