diff options
author | Daniel Friesel <derf@finalrewind.org> | 2011-08-16 22:33:46 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2011-08-16 22:33:46 +0200 |
commit | 5b3d8a2b48fe10dee44c24a541cab809059780f9 (patch) | |
tree | 9eb49a5b8df281f40efe5b62a60a6ac939f3f25a /etc | |
parent | 36e217ea01204377aefacdf3e7c9a7b667cb3d00 (diff) |
completions: more improvements
Diffstat (limited to 'etc')
-rw-r--r-- | etc/completions/_cryptsetup | 6 | ||||
-rw-r--r-- | etc/completions/_twidge | 10 |
2 files changed, 10 insertions, 6 deletions
diff --git a/etc/completions/_cryptsetup b/etc/completions/_cryptsetup index 854bfd2..2c06b9a 100644 --- a/etc/completions/_cryptsetup +++ b/etc/completions/_cryptsetup @@ -68,7 +68,8 @@ function _cryptsetup_arguments { esac } -_arguments \ +function _cryptsetup { + _arguments \ '(-v --verbose)'{-v,--verbose}'[enable verbose mode]' \ '--debug[enable debug mode]' \ '(-h --hash)'{-h,--hash}'[hash algorithm]:hash algorithm' \ @@ -96,3 +97,6 @@ _arguments \ '--version[show version information]' \ ':action:_cryptsetup_action' \ '*::arguments:_cryptsetup_arguments' +} + +_cryptsetup "$@" diff --git a/etc/completions/_twidge b/etc/completions/_twidge index 3c128e4..0386990 100644 --- a/etc/completions/_twidge +++ b/etc/completions/_twidge @@ -71,10 +71,10 @@ function _twidge_args { function _twidge { _arguments \ - '(-c --config)'{-c,--config}'[config file]:file:_files' \ - '(-d --debug)'{-d,--debug}'[enable debugging output]' \ - '(-): :_twidge_command' \ - '(-)*:: :_twidge_args' + '(-c --config)'{-c,--config}'[config file]:file:_files' \ + '(-d --debug)'{-d,--debug}'[enable debugging output]' \ + '(-): :_twidge_command' \ + '(-)*:: :_twidge_args' } -_twidge +_twidge "$@" |