summaryrefslogtreecommitdiff
path: root/plugins/systemd
diff options
context:
space:
mode:
authorbretello <bretello@users.noreply.github.com>2023-09-12 21:41:07 +0200
committerGitHub <noreply@github.com>2023-09-12 21:41:07 +0200
commit01f55123118601a935f28ff6c49e625448bdd32d (patch)
tree995f7310e15d9e930bab222cf56c687802773ed2 /plugins/systemd
parent38ef5192cb1c43159b516d15ab8fed96f847b36b (diff)
downloadzsh-01f55123118601a935f28ff6c49e625448bdd32d.tar.gz
zsh-01f55123118601a935f28ff6c49e625448bdd32d.tar.bz2
zsh-01f55123118601a935f28ff6c49e625448bdd32d.zip
feat(systemd): add alias for --failed commands (#11847)
Diffstat (limited to 'plugins/systemd')
-rw-r--r--plugins/systemd/README.md1
-rw-r--r--plugins/systemd/systemd.plugin.zsh3
2 files changed, 4 insertions, 0 deletions
diff --git a/plugins/systemd/README.md b/plugins/systemd/README.md
index ffa0567a8..755c649a1 100644
--- a/plugins/systemd/README.md
+++ b/plugins/systemd/README.md
@@ -12,6 +12,7 @@ plugins=(... systemd)
| Alias | Command | Description |
|:-----------------------|:-----------------------------------|:-----------------------------------------------------------------|
+| `sc-failed` | `systemctl --failed` | List failed systemd units |
| `sc-list-units` | `systemctl list-units` | List all units systemd has in memory |
| `sc-is-active` | `systemctl is-active` | Show whether a unit is active |
| `sc-status` | `systemctl status` | Show terse runtime status information about one or more units |
diff --git a/plugins/systemd/systemd.plugin.zsh b/plugins/systemd/systemd.plugin.zsh
index 1270bea0e..382a57b29 100644
--- a/plugins/systemd/systemd.plugin.zsh
+++ b/plugins/systemd/systemd.plugin.zsh
@@ -93,6 +93,9 @@ alias scu-enable-now="scu-enable --now"
alias scu-disable-now="scu-disable --now"
alias scu-mask-now="scu-mask --now"
+# --failed commands
+alias scu-failed='systemctl --user --failed'
+alias sc-failed='systemctl --failed'
function systemd_prompt_info {
local unit