mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-11 00:10:08 +00:00
feat(systemd): add alias for --failed commands (#11847)
This commit is contained in:
parent
38ef5192cb
commit
01f5512311
2 changed files with 4 additions and 0 deletions
|
@ -12,6 +12,7 @@ plugins=(... systemd)
|
||||||
|
|
||||||
| Alias | Command | Description |
|
| 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-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-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 |
|
| `sc-status` | `systemctl status` | Show terse runtime status information about one or more units |
|
||||||
|
|
|
@ -93,6 +93,9 @@ alias scu-enable-now="scu-enable --now"
|
||||||
alias scu-disable-now="scu-disable --now"
|
alias scu-disable-now="scu-disable --now"
|
||||||
alias scu-mask-now="scu-mask --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 {
|
function systemd_prompt_info {
|
||||||
local unit
|
local unit
|
||||||
|
|
Loading…
Reference in a new issue