Commit Graph
762 Commits
Author SHA1 Message Date
Zbigniew Jędrzejewski-Szmek e999ed15ef shell-completion: add shell completions for systemd-hwdb
Co-developed-by: Claude <claude@anthropic.com>
(cherry picked from commit ec32afd525)
(cherry picked from commit 8c2156ed85)
(cherry picked from commit dacbe393c1)
2026-05-27 14:30:26 +01:00
Franck Bui d86fd04fd5 zsh: don't install _sd_machines when machined is disabled
(cherry picked from commit 651100c946)
(cherry picked from commit c77d649a6f)
2026-03-13 17:07:58 +00:00
Ronan Pigott 3ee4693b66 zsh: fixup some recent zsh completers
These two completers are written in a stacked _arguments style, and some
generic options are valid before or after the verb. If the toplevel
_arguments is permitted to match options after the verb, it will halt
completion prematurely, so stop toplevel matching after the verb.

This corrects the following error:

$ userdbctl --output=class user <TAB> # completes users
$ userdbctl user --output=class <TAB> # completes nothing

(cherry picked from commit 0fc5c9ef2e)
(cherry picked from commit a7f1bdc59f)
2026-03-12 17:20:56 +00:00
Ronan Pigott 062796fd75 zsh: add systemd-id128 completions
(cherry picked from commit 8d720dea86)
(cherry picked from commit 9d8570f9ac)
2026-03-12 17:20:56 +00:00
Ronan Pigott c9cb27b7f2 zsh: add userdbctl completion
(cherry picked from commit ac4a7a66bd)
(cherry picked from commit ba7247e37c)
2026-03-12 17:20:56 +00:00
Kai Lüke 986c2eedc4 bash-completion/vmspawn: insert missing space between options
Follow-up for 3b18a8795d.

(cherry picked from commit 2e14be9a84)
(cherry picked from commit 20e4ab0900)
2026-02-06 19:33:55 +00:00
Luca Boccassi 0359c8f456 shell-completion: fix portablectl path completion with preceding params
The completion fails to complete to paths for verbs that need them when
a --param is the previous word, e.g.:

portablectl attach --runtime <tab>

fails to complete to paths

(cherry picked from commit 2abb433ca1)
2025-12-10 15:40:24 +00:00
Yu Watanabe bcd8b2b66f meson: exit earlier from the subdirectory when bash/zshcompletiondir is 'no'
(cherry picked from commit d2b8e42742)
2025-12-10 15:40:23 +00:00
Yu Watanabe acc42f5cf0 meson: sort shell completions
(cherry picked from commit c74dc8cf14)
2025-12-10 15:40:23 +00:00
Luca Boccassi a944c4beec shell-completion: add bash script for varlinkctl
(cherry picked from commit f16518ce86)
2025-12-10 15:40:23 +00:00
Simon Barth e8cc24a178 shell-completion: bash: Add systemd-analyze calendar options
Add completion for the systemd-analyze calendar options --iterations and
--base-time.

(cherry picked from commit a049825708)
2025-12-10 15:40:23 +00:00
Simon Barth 7b067dcbc9 shell-completion: bash: Add systemd-analyze filesystems
(cherry picked from commit 62aba7c5cd)
2025-12-10 15:40:23 +00:00
Jelle van der Waa cef16f1688 shell-completion: zsh: add completion for systemd-analyze inspect-elf
(cherry picked from commit 1e29036afc)
2025-12-10 15:40:23 +00:00
Jelle van der Waa 2dc5425265 shell-completion: bash: add systemd-analyze image-policy completion
(cherry picked from commit 49ff5ad6e6)
2025-12-10 15:40:23 +00:00
Jelle van der Waa ff11e23c7b shell-completion: zsh: add missing completions for systemd-analyze
Adds missing simple verbs which already exist in bash completion.

(cherry picked from commit 7112e08cec)
2025-12-10 15:40:23 +00:00
Jelle van der Waa 05e8fd991b shell-completion: zsh: add systemd-analyze architectures completion
(cherry picked from commit 60c68080b7)
2025-12-10 15:40:23 +00:00
Ronan Pigott 903c8ff577 zsh: add completion for dbus bus address
The DBUS_SESSION_BUS_ADDRESS and DBUS_SYSTEM_BUS_ADDRESS parameters have
an interesting syntax thats useful to complete. Let's include a
completion definition for these parameters.

(cherry picked from commit 6f8e6e50a0)
2025-11-06 14:13:33 +00:00
Pascal Bachor c91f3b6928 bash-completion: update systemd-sysext, systemd-confext
(cherry picked from commit 9b5f1a6112)
2025-10-10 10:36:48 +02:00
Zbigniew Jędrzejewski-Szmek c32062c533 journalctl: fix erroneuous mention of "local" hostnames
--no-hostname applies equally to remote and local logs.

This change is a separate commit to make it easy to backport.

(cherry picked from commit 8b6c1d392e)
2025-10-10 10:30:30 +02:00
Luca Boccassi e3f4aa4a75 shell-completion: add missing arguments for journalctl 2025-09-14 09:42:36 +01:00
Antonio Alvarez Feijoo 559da4a509 bash-completion/bootctl: add missing options and verb 2025-09-08 12:37:26 +02:00
Yu Watanabe 5bb434e317 shell-completion: support -i option for journalctl
Follow-up for dde54b8a85.
2025-08-26 19:24:39 +01:00
Zbigniew Jędrzejewski-Szmek 9fa08842b7 shell-completion: drop deprecated systemd-efi-options from suggestions 2025-07-28 19:08:50 +01:00
Yu Watanabe 54820da421 bash-completion/analyze: show candidates for --debugger
This also adds missing completion for --debugger-arguments.

Follow-up for ad6e02e7b4.
2025-07-18 01:47:25 +09:00
ZIHCO ad6e02e7b4 systemd-analyze: added the verb unit-gdb to spawn and attach gdb 2025-07-17 15:09:58 +01:00
Eisuke Kawashima c2b0f637c2 fix(shell-completion): discard error messages 2025-07-14 20:24:26 +09:00
Eisuke Kawashima 86fff7fb38 fix(shell-completion): strictly parse env output
shell functions may be exported, when env prints their body in multiple
lines
2025-07-14 20:24:26 +09:00
Eisuke Kawashima b371e7252c fix(SC2164): robust cd conditional 2025-07-14 20:24:26 +09:00
Eisuke Kawashima 01e769bc2e fix(SC2162): add -r to read 2025-07-14 20:24:26 +09:00
Eisuke Kawashima cb2e0dc4f5 fix(shell-completion): correct conditional 2025-07-14 20:24:26 +09:00
Eisuke Kawashima 12e64a4848 style(shell-completion): remove unnecessary backslashes 2025-07-14 20:24:25 +09:00
Eisuke Kawashima 5300aa7a1d style(shell-completion): remove trailing semicolons 2025-07-14 20:24:25 +09:00
Eisuke Kawashima 56c093004c style(shell-completion): add missing semicolons 2025-07-14 20:24:25 +09:00
Eisuke Kawashima dfe6b3fa38 style(shell-completion): expand hard tabs and fix indentation 2025-07-14 20:24:25 +09:00
Eisuke Kawashima 2da41c4b51 fix(shell-completion): fix help string 2025-07-14 20:24:25 +09:00
Eisuke Kawashima 4571a1d77a shell-completion: update systemd-run 2025-07-11 19:04:44 +02:00
Zbigniew Jędrzejewski-Szmek 63770fa1d3 systemd-run: add --no-pager, use pager for --help 2025-07-11 19:01:42 +09:00
Li Tian b6d4997683 Add --entry-type=type1|type2 option to kernel-install.
Both kernel-core and kernel-uki-virt call kernel-install upon removal. Need an additional argument to avoid complete removal for both traditional kernel and UKI.

Signed-off-by: Li Tian <litian@redhat.com>
2025-07-10 18:07:23 +02:00
Eisuke Kawashima dc6e9c548b zsh-completion: generate completion for systemd-run from systemd-analyze
continuation of #37641
2025-07-10 11:39:06 +02:00
ZIHCO 9a08000d18 systemd-analyze: added the verb unit-shell to spawn and attach shell 2025-07-04 16:09:07 +01:00
Zbigniew Jędrzejewski-Szmek d971936bf4 shell-completions: add systemd-analyze transient-settings
The zsh completions only complete one type argument, even though multiple
args are allowed. But the same issue occurs with other completions, e.g.
for options. I don't know how to solve this.
2025-07-03 21:03:26 +02:00
peelz 7c8070c781 zsh: remove _files prefixes
Prefixes would be nice, but they appear to be very buggy.

A few examples:
- `udevadm test-builtin net_setup_link /sys<TAB><TAB>`: `/sysblock/`
- `udevadm test-builtin net_setup_link /sys/<TAB><TAB>`: `/sys/bin/`
- `journalctl /dev<TAB>`: `/dev//dev/`
2025-07-02 12:48:42 +01:00
Zbigniew Jędrzejewski-Szmek 7d247d3cb8 meson: drop explicit custom_target names
[1] says:
> Since 0.60.0 the name argument is optional and defaults to the basename of
> the first output
We specify >= 0.62 as the supported version, so drop the duplicate name in all cases
where it is the same as outputs[0], i.e. almost all cases.

[1] https://mesonbuild.com/Reference-manual_functions.html#custom_target
2025-06-28 17:14:50 +02:00
Ronan Pigott 88036a47e4 zsh: complete positional devpath in udevadm info/trigger 2025-06-13 11:23:59 +01:00
Eisuke Kawashima 39c3638445 zsh-completion: improve systemd-run
- add missed options
- improve completion for property
2025-05-28 09:50:53 +02:00
Eisuke Kawashima b9df3d6447 shell-completion: improve completion of systemd-tmpfiles 2025-05-16 14:04:09 +09:00
Lennart Poettering 682413d577 bash: add shell completion
No idea what I am doing, but this might be enough.
2025-05-13 15:39:57 +02:00
Eisuke KawashimaandEisuke Kawashima 6d07d23b02 shell-completion: fix completion of systemctl --user unset-environment (#37409)
Co-authored-by: Eisuke Kawashima <e-kwsm@users.noreply.github.com>
2025-05-13 09:04:52 +09:00
Luca Boccassi bd9c55ebe2 import/export: add support for zstd 2025-04-15 12:21:30 +01:00
Yu Watanabe c53d155d8d udevadm: introduce --revert option to call io.systemd.service.Revert 2025-04-12 05:08:16 +09:00