From b84399b9cbb93f199d695d7cb264c44178a8d5e0 Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Thu, 31 Jul 2003 15:26:13 +0000 Subject: tidy up of many completions (updates, fixes, improvements and plain aesthetics) --- Completion/Unix/Command/_rar | 209 +++++++++++++++++-------------------------- 1 file changed, 80 insertions(+), 129 deletions(-) (limited to 'Completion/Unix/Command/_rar') diff --git a/Completion/Unix/Command/_rar b/Completion/Unix/Command/_rar index 73b8db3d4..910989437 100644 --- a/Completion/Unix/Command/_rar +++ b/Completion/Unix/Command/_rar @@ -1,137 +1,88 @@ #compdef rar unrar +local common -_rar(){ - case $service in - rar) - _arguments -s \ - '*::rar command:_rar_command' - ;; - unrar) - _arguments -s \ - '*::unrar command:_unrar_command' - ;; - esac -} +common=( + '-ad[append archive name to destination path]' + '-ap[set path inside archive]' + '-av\-[disable authenticity verification check]' + '-c\-[disable comments show]' + '-cfg\-[disable read configuration]' + '-cl\-[convert names to lower case]' + '-cu[convert names to upper case]' + '-dh[open shared files]' + '-ep[exclude paths from name]' + '-f[freshen files]' + '-idp[disable percentage display]' + '-ierr[send all messages to stderr]' + '-inul[disable all messages]' + '-kb[keep broken extracted files]' + '-o\+[overwrite existing files]' + '-o\-[do not overwrite existing files]' + '-ow[save or restore file owner and group]' + '-p\-[do not query password]' + '-r[recurse subdirectorie]' + '-ta[process files modified after in YYYYMMDDHHMMSS format]' + '-tb[process files modified before in YYYYMMDDHHMMSS format]' + '-tn[process files newer than