From 617414372ae07c45de1ea0856fa177da320df60c Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 14 Mar 2009 16:56:33 +0100 Subject: cryptsetup completion: Fixed arguments --- etc/completions/_cryptsetup | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'etc/completions/_cryptsetup') diff --git a/etc/completions/_cryptsetup b/etc/completions/_cryptsetup index 4a28068..5a327b3 100644 --- a/etc/completions/_cryptsetup +++ b/etc/completions/_cryptsetup @@ -19,12 +19,12 @@ function _cryptsetup_mapping { function _cryptsetup_arguments { if (( CURRENT == 2 )) { - case $word[1] in + case $words[1] in create|remove|status|resize) _cryptsetup_mapping ;; luks(Format|Open|AddKey|RemoveKey|KillSlot|DelKey|UUID|Dump)|isLuks) _cryptsetup_device ;; esac - } elif (( CURRNT == 3 )) { - case $word[1] in + } elif (( CURRENT == 3 )) { + case $words[1] in create) _cryptsetup_device ;; luksOpen) _cryptsetup_mapping ;; esac @@ -48,4 +48,4 @@ _arguments -n \ {-T,--tries}':passwort retries' \ '--align-payload=-:payload boundary align (512-byte sectors)' \ ':action:_cryptsetup_action' \ - ':arguments::_cryptsetup_arguments' + '*::arguments:_cryptsetup_arguments' -- cgit v1.2.3