Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
01f55123
Unverified
Commit
01f55123
authored
Sep 12, 2023
by
bretello
Committed by
GitHub
Sep 12, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(systemd): add alias for --failed commands (#11847)
parent
38ef5192
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
README.md
plugins/systemd/README.md
+1
-0
systemd.plugin.zsh
plugins/systemd/systemd.plugin.zsh
+3
-0
No files found.
plugins/systemd/README.md
View file @
01f55123
...
@@ -12,6 +12,7 @@ plugins=(... systemd)
...
@@ -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 |
...
...
plugins/systemd/systemd.plugin.zsh
View file @
01f55123
...
@@ -93,6 +93,9 @@ alias scu-enable-now="scu-enable --now"
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment