mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-12-24 05:11:58 +00:00
feat(systemd): add support for user units in prompt (#11417)
This commit is contained in:
parent
a3c579bf27
commit
55e4e6c73b
1 changed files with 2 additions and 0 deletions
|
@ -107,6 +107,8 @@ function systemd_prompt_info {
|
||||||
|
|
||||||
if systemctl is-active "$unit" &>/dev/null; then
|
if systemctl is-active "$unit" &>/dev/null; then
|
||||||
echo -n "$ZSH_THEME_SYSTEMD_PROMPT_ACTIVE"
|
echo -n "$ZSH_THEME_SYSTEMD_PROMPT_ACTIVE"
|
||||||
|
elif systemctl --user is-active "$unit" &>/dev/null; then
|
||||||
|
echo -n "$ZSH_THEME_SYSTEMD_PROMPT_ACTIVE"
|
||||||
else
|
else
|
||||||
echo -n "$ZSH_THEME_SYSTEMD_PROMPT_NOTACTIVE"
|
echo -n "$ZSH_THEME_SYSTEMD_PROMPT_NOTACTIVE"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue