Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

_unace



Hi,
 I've written completion file for the unace command. Its syntax is very 
similar to the unrar command so I've used part of _rar as a pattern while 
creating it. This is my first completion file so I would be grateful for any 
comments.
 I hope that I send it to the suittable mailing list :P

 Greetings, HK
#compdef unace

if (( CURRENT == 2)); then
	_values 'unace command' \
	'e[Extract files]' \
	'l[List archive]' \
	't[Test archive integrity]' \
	'v[List archive (verbose)]' \
	'x[Extract files with full path]' \
	&& return 
else
	_arguments -S \
	'-c\ [Show comments]' \
	'-f\ [Full path matching]' \
	'-o\ [Overwrite files]' \
	'-p\<password>[Set <password>]' \
	'-y\ [Assume yes on all queries]' \
	'*:files:_files -g \*.rar\(-.\)\' \
      	 && return 
fi



Messages sorted by: Reverse Date, Date, Thread, Author