From 5012bcb97607c7faa770992e4db98921f6314fc8 Mon Sep 17 00:00:00 2001 From: memchr Date: Mon, 24 Mar 2025 08:08:58 +0000 Subject: [PATCH] completions/cryptsetup: complete device mapping names The commands 'close', 'resize', and 'status' each take 'name' as their solo argument. Signed-off-by: memchr --- share/completions/cryptsetup.fish | 3 +++ 1 file changed, 3 insertions(+) diff --git a/share/completions/cryptsetup.fish b/share/completions/cryptsetup.fish index 7a50c52dc..269db941b 100644 --- a/share/completions/cryptsetup.fish +++ b/share/completions/cryptsetup.fish @@ -94,3 +94,6 @@ complete -c cryptsetup -l veracrypt-query-pim -d "Query Personal Iteration Multi complete -c cryptsetup -l verbose -s v -d "Shows more detailed error messages" complete -c cryptsetup -l verify-passphrase -s y -d "Verifies the passphrase by asking for it twice" complete -c cryptsetup -l version -s V -d "Print package version" + +# subcommands +complete -c cryptsetup -n "__fish_seen_subcommand_from close status resize" -f -r -a "(path basename /dev/mapper/* | string match -v control)"