From 55ed2ee63eecd54c9751a90fff1572e2f942d029 Mon Sep 17 00:00:00 2001 From: Jelle van der Waa Date: Mon, 31 Aug 2026 15:24:30 +0200 Subject: [PATCH 1/2] shell-completion: Add -n option for bootctl Introduced in f5ffb3860627f5a12951ab3a6759b038fa37e73b --- shell-completion/bash/bootctl | 2 +- shell-completion/zsh/_bootctl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/shell-completion/bash/bootctl b/shell-completion/bash/bootctl index 16aafbe4ce..6823ca3546 100644 --- a/shell-completion/bash/bootctl +++ b/shell-completion/bash/bootctl @@ -37,7 +37,7 @@ _bootctl() { --print-stub-path -R --print-root-device -RR --print-efi-architecture --no-pager --graceful -q --quiet --all-architectures - --dry-run' + -n --dry-run' [ARG]='--esp-path --boot-path --root --image --image-policy --install-source --variables --random-seed --make-entry-directory --entry-token --json --efi-boot-option-description --efi-boot-option-description-with-device diff --git a/shell-completion/zsh/_bootctl b/shell-completion/zsh/_bootctl index 46956e55e3..c63f8ab8a6 100644 --- a/shell-completion/zsh/_bootctl +++ b/shell-completion/zsh/_bootctl @@ -104,7 +104,7 @@ _arguments \ '--make-machine-id-directory=[Control creation and deletion of the top-level machine ID directory.]:options:(yes no auto)' \ '--no-pager[Do not pipe output into a pager]' \ '--graceful[Do not fail when locating ESP or writing fails]' \ - '--dry-run[Dry run (unlink and cleanup)]' \ + '(-n --dry-run)'{-n,--dry-run}'[Dry run (unlink and cleanup)]' \ '--oldest=[Delete oldest boot menu entry]:options:(yes no)' \ '--root=[Operate under the specified directory]:PATH' \ '--image=[Operate on the specified image]:PATH' \ From 12217e71a2759be7b7dddc5a4f80548dee0e5abe Mon Sep 17 00:00:00 2001 From: Jelle van der Waa Date: Mon, 31 Aug 2026 15:36:18 +0200 Subject: [PATCH 2/2] zsh: Add missing -n shorthand for --dry-run Both already an option in udevadm and systemd-tmpfiles. --- shell-completion/zsh/_systemd-tmpfiles | 6 +++--- shell-completion/zsh/_udevadm | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/shell-completion/zsh/_systemd-tmpfiles b/shell-completion/zsh/_systemd-tmpfiles index 1e3ddb873e..72b9a8759c 100644 --- a/shell-completion/zsh/_systemd-tmpfiles +++ b/shell-completion/zsh/_systemd-tmpfiles @@ -5,8 +5,8 @@ _arguments \ '(- *)'{-h,--help}'[Show help]' \ '--user[Execute user configuration]' \ '(- *)--version[Show package version]' \ - '(--tldr --dry-run)--cat-config[Show configuration files]' \ - '(--cat-config --dry-run)--tldr[Show non-comment parts of configuration]' \ + '(--tldr -n --dry-run)--cat-config[Show configuration files]' \ + '(--cat-config -n --dry-run)--tldr[Show non-comment parts of configuration]' \ '--create[Create, set ownership/permissions based on the config files.]' \ '--clean[Clean up all files and directories with an age parameter configured.]' \ '--remove[All files and directories marked with r, R in the configuration files are removed.]' \ @@ -20,6 +20,6 @@ _arguments \ '--image=[Operate on disk image as filesystem root]:image' \ '--image-policy=[Specify disk image dissection policy]:policy' \ '--replace=[Treat arguments as replacement for PATH]:PATH' \ - '(--cat-config --tldr)--dry-run[Just print what would be done]' \ + '(--cat-config --tldr)'{-n,--dry-run}'[Just print what would be done]' \ '--no-pager[Do not pipe output into a pager]' \ '*::files:_files -g "*.conf"' diff --git a/shell-completion/zsh/_udevadm b/shell-completion/zsh/_udevadm index 7e717d30a3..e0112b3ed5 100644 --- a/shell-completion/zsh/_udevadm +++ b/shell-completion/zsh/_udevadm @@ -27,7 +27,7 @@ _udevadm_trigger(){ '(-)'{-h,--help}'[Show help]' \ '(-)'{-V,--version}'[Show package version]' \ '--verbose[Print the list of devices which will be triggered.]' \ - '--dry-run[Do not actually trigger the event.]' \ + '(-n --dry-run)'{-n,--dry-run}'[Do not actually trigger the event.]' \ '--quiet[Suppress error logging in triggering events.]' \ '--type=[Trigger a specific type of devices.]:types:(all devices subsystems failed)' \ '--action=[Type of event to be triggered.]:actions:(add change remove move online offline bind unbind)' \