70 for c in $user_commands; do
71 alias "sc-$c"="systemctl $c"
72 alias "scu-$c"="systemctl --user $c"
75 for c in $sudo_commands; do
76 alias "sc-$c"="sudo systemctl $c"
77 alias "scu-$c"="systemctl --user $c"
80 for c in $power_commands; do
81 alias "sc-$c"="systemctl $c"
84 unset c user_commands sudo_commands power_commands
88 alias sc-enable-now="sc-enable --now"
89 alias sc-disable-now="sc-disable --now"
90 alias sc-mask-now="sc-mask --now"
92 alias scu-enable-now="scu-enable --now"
93 alias scu-disable-now="scu-disable --now"
94 alias scu-mask-now="scu-mask --now"
97 function systemd_prompt_info {
100 echo -n "$ZSH_THEME_SYSTEMD_PROMPT_PREFIX"
102 if [[ -n "$ZSH_THEME_SYSTEMD_PROMPT_CAPS" ]]; then
103 echo -n "${(U)unit:gs/%/%%}:"
105 echo -n "${unit:gs/%/%%}:"
108 if systemctl is-active "$unit" &>/dev/null; then
109 echo -n "$ZSH_THEME_SYSTEMD_PROMPT_ACTIVE"
111 echo -n "$ZSH_THEME_SYSTEMD_PROMPT_NOTACTIVE"
114 echo -n "$ZSH_THEME_SYSTEMD_PROMPT_SUFFIX"