Commit graph

16 commits

Author SHA1 Message Date
iyzana
c4d215e1dc feat(systemd): preserve editor env for sudo commands
When running `systemctl` commands that require sudo, the users'
configured editor environment variables were not preserved. This
resulted in systemctl opening a default editor.

By instructing sudo to preserve the common environment variables for
configuring an editor, systemctl can see these variables and open the
users' preferred editor.

This is mostly relevant for the `sc-edit` alias.
2025-09-05 00:37:29 +02:00
bretello
01f5512311
feat(systemd): add alias for --failed commands (#11847) 2023-09-12 21:41:07 +02:00
the.brain.w
55e4e6c73b
feat(systemd): add support for user units in prompt (#11417) 2022-12-30 11:52:18 +01:00
scrouthtv
116fc2feaa
fix(systemd): enable --user on restart command (#10543)
`restart` is a unit-related command, not power-related, so it should appear as `sc-restart=sudo systemctl restart` and `scu-restart=systemctl --user restart`
2021-12-30 10:44:57 +01:00
scrouthtv
5b2f99bcb7
fix(systemd): remove sudo from power-related aliases (#9441) 2021-12-29 10:31:29 +01:00
Jon
bcc3ee8ce8
systemd: remove newline from systemd prompt (#8772) 2020-03-25 10:02:00 +01:00
Sir Mobus Gochfulshigan Dorphin Esquire XXIII
eeb49bf5b0
systemd: add prompt function to show systemd units' status (#7657)
Co-authored-by: Marc Cornellà <marc.cornella@live.com>
2020-02-18 23:04:14 +01:00
Petr Šabata
bfec31666a
systemd: refactor and add latest commands (#6250)
* Order systemctl commands alphabetically

Simplifying the plugin maintenance.

Signed-off-by: Petr Šabata <contyk@redhat.com>

* Include the latest systemctl commands

Based on systemd-233.  I'm still keeping the old, now unsupported
commands for backwards compatibility as well.

Signed-off-by: Petr Šabata <contyk@redhat.com>

* Add daemon-reload (#3701)

Closes #3701
Co-authored-by: Javier Tia <javier.tia@gmail.com>
2020-02-10 19:16:02 +01:00
Jayadeep K M
b0274a8877 systemd: add README (#7225) 2018-10-04 23:27:09 +02:00
Sumit Sahrawat
b743ce9224 Add scu-* aliases for 'systemctl --user' commands (#6661) 2018-08-19 21:39:58 +02:00
Ben Cole
2d7a451e0e Add list-timers to systemd user commands (#5099)
This is useful for listing "cron like" systemd jobs
2016-06-05 22:43:59 -07:00
Robby Russell
2522ab4504 Merge pull request #4204 from DoctorJellyface/patch-1
Added --now systemd aliases
2015-10-09 07:19:54 -07:00
Juraj Fiala
86d881c47d Added aliases for --now commands
Also removed the old sc-launch alias because this is just better.
2015-09-06 13:01:09 +02:00
Juraj Fiala
800af047d7 Add sc-launch as a shortcut for start & enable
I've heard many people requesting systemd to add this functionality. It's very handy under Arch.
2015-08-01 17:45:00 +02:00
Boris Avdeev
5554207279 Add alias for "systemctl cat" and "systemctl edit" 2015-07-31 15:05:07 +03:00
Augusto Rocha Elesbão
58d904a289 Added systemd plugin with aliases for systemctl commands. 2012-10-01 11:29:06 -03:00