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

tar compctl



Hi,

Here's a GNU tar compctl I hacked up, it completes compressed tar files
after something like -xzvf, plain tar files after something like -xvf
and directories after -C, and "-xzvf" otherwise.

compctl -k '(-xzvf)' -x 'C[-1,*z*]' -g '*.(tgz|tar.(Z|gz))' \
	- 'C[-1,*x*]' -g '*.tar' - 'c[-1,-C]' -g '*(/)' -- tar

Regards

Niall



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