summaryrefslogtreecommitdiff
path: root/etc/completions/_cryptsetup
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-03-08 12:23:10 +0100
committerDaniel Friesel <derf@derf.homelinux.org>2009-03-08 12:23:10 +0100
commitdb28a40b716af305e570424a1516d1ad396fcaf5 (patch)
tree5b7927cc090568dde3b1367eda00869791c5f5c4 /etc/completions/_cryptsetup
parent1622717d4ac8a53fa9330e512189a4d63b589087 (diff)
continued cryptsetup completion
Diffstat (limited to 'etc/completions/_cryptsetup')
-rw-r--r--etc/completions/_cryptsetup23
1 files changed, 20 insertions, 3 deletions
diff --git a/etc/completions/_cryptsetup b/etc/completions/_cryptsetup
index 05a5065..3d34bef 100644
--- a/etc/completions/_cryptsetup
+++ b/etc/completions/_cryptsetup
@@ -1,11 +1,28 @@
#compdef cryptsetup
-typeset expl
-
-if (( CURRENT == 2 )) {
+function _cryptsetup_action {
+ typeset expl
_wanted action expl action \
compadd create remove status resize \
luks{Format,Open,Close,{Add,Remove}Key} \
luks{KillSlot,UUID,Dump} \
isLuks
}
+
+_arguments -n \
+ {-h,--hash}':hash' \
+ {-c,--cipher}':cipher specification' \
+ {-y,--verify-passphrase} \
+ {-d,--key-file}':key file:_files' \
+ {-S,--key-slot}':key slot' \
+ {-s,--key-size}':key size (bits)' \
+ {-b,--size}':device size (sectors)' \
+ {-o,--offset}':start offset' \
+ {-p,--skip}':skip data (sectors)' \
+ --readonly \
+ {-i,--iter-time}':password processing time (milliseconds)' \
+ {-q,--batch-mode} \
+ {-t,--timeout}':password timeout (seconds)' \
+ {-T,--tries}':passwort retries' \
+ '--align-payload=-:payload boundary align (512-byte sectors)' \
+ ':action:_cryptsetup_action'