]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
shell-completion: improve completion of systemd-tmpfiles
authorEisuke Kawashima <e-kwsm@users.noreply.github.com>
Thu, 15 May 2025 22:46:46 +0000 (07:46 +0900)
committerLuca Boccassi <luca.boccassi@gmail.com>
Wed, 28 May 2025 18:16:16 +0000 (19:16 +0100)
(cherry picked from commit b9df3d6447955e59f4e83e2b10ca97d4a484a6a5)
(cherry picked from commit 8462cb0b9dd502a31df23745b74791a7fe74fb32)

shell-completion/zsh/_systemd-tmpfiles

index 316014882da3da7c608f163dba3282905fed3ac5..1e3ddb873ead94d137c28056a07a1c3ce0a62088 100644 (file)
@@ -5,19 +5,21 @@ _arguments \
     '(- *)'{-h,--help}'[Show help]' \
     '--user[Execute user configuration]' \
     '(- *)--version[Show package version]' \
-    '--cat-config[Show configuration files]' \
-    '--tldr[Show non-comment parts of configuration]' \
+    '(--tldr --dry-run)--cat-config[Show configuration files]' \
+    '(--cat-config --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.]' \
+    '--purge[Delete files and directories marked for creation in specified configuration files (careful!)]' \
     '--boot[Execute actions only safe at boot]' \
     '--graceful[Quietly ignore unknown users or groups]' \
-    '--prefix=[Only apply rules that apply to paths with the specified prefix.]:PATH' \
-    '--exclude-prefix=[Ignore rules that apply to paths with the specified prefix.]:PATH' \
+    '*--prefix=[Only apply rules that apply to paths with the specified prefix.]:PATH' \
+    '*--exclude-prefix=[Ignore rules that apply to paths with the specified prefix.]:PATH' \
     '-E[Ignore rules prefixed with /dev, /proc, /run, /sys]' \
     '--root=[Operate on an alternate filesystem root]:directory:_directories' \
     '--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]' \
     '--no-pager[Do not pipe output into a pager]' \
-    '*::files:_files'
+    '*::files:_files -g "*.conf"'