Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
small patches for ZSH Completion function
- X-seq: zsh-workers 19272
- From: Baptiste Daroussin <daroussi@xxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: small patches for ZSH Completion function
- Date: Thu, 04 Dec 2003 12:27:10 +0100
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
Hi,
The following patches are for :
chown:
add linux to the OSTYPE that need suffix : after users because the
suffix . is deprecated and in the last version of chown on my gentoo
does not work anymore.
links:
added a _call_program to get a list of available drivers for -driver
option
mplayer:
added the new matroska (mkv mka) format in list (supported since the
1.0pre2 version of mplayer) and ogm, ogg (supported since ??)
hope it helps (this time I've made patches :) )
--
Baptiste Daroussin <daroussi@xxxxxx>
--- _chown-orig 2003-11-17 15:26:25.000000000 +0100
+++ _chown 2003-12-04 12:19:55.000000000 +0100
@@ -13,7 +13,7 @@
fi
_groups && return 0
else
- if [[ $OSTYPE = (solaris*|hpux*|*bsd*) ]]; then
+ if [[ $OSTYPE = (solaris*|hpux*|*bsd*|linux*) ]]; then
suf=':'
else
suf='.'
--- _links-orig 2003-11-17 15:26:25.000000000 +0100
+++ _links 2003-12-03 22:32:44.000000000 +0100
@@ -3,12 +3,18 @@
local curcontext="$curcontext" state line
typeset -A opt_args
+_list_driver () {
+ vals=(${=${${${(f)"$(_call_program links-graphics-driver links -driver help 2>&1)"}[-1]}//','/''}} )
+ _describe -t links-graphics-driver 'graphic drivers' vals && ret=0
+
+}
+
_arguments -C \
'(-help)-anonymous[restrict links so that it can run on an anonymous account]' \
'(-help)-assume-codepage[use the given codepage when the webpage did not specify its]:codepage:' \
'(-help)-async-dns[asynchronous DNS resolver]:bool:((0\:on 1\:off))' \
'(-help)-download-dir[default download directory]:_files -/' \
- '(-help)-driver[graphics driver to use]:driver:(x svgalib fb pmshell atheos)' \
+ '(-help)-driver[graphics driver to use]:graphic drivers:_list_driver' \
'(-help)-dump[dump the page as pure text]' \
'(-help)-format-cache-size[number of formatted document pages cached]:pages:' \
'(-help)-ftp-proxy[host and port number of the FTP proxy, or blank]:hostport:_hosts' \
--- _mplayer-orig 2003-11-17 15:26:25.000000000 +0100
+++ _mplayer 2003-12-03 22:52:57.000000000 +0100
@@ -115,7 +115,7 @@
_tags files urls
while _tags; do
_requested files expl 'video file' _files -g \
- "*.(#i)(avi|mp3|mpg|mpe|mpeg|m1v|mov|asf|vob|mjpg|wma|wmv|asx|qt|rm)" && ret=0
+ "*.(#i)(avi|mp3|mpg|mpe|mpeg|m1v|mov|asf|vob|mjpg|wma|wmv|asx|qt|rm|mkv|mka|ogm|ogg)" && ret=0
if _requested urls; then
while _next_label urls expl url; do
_urls "$expl[@]" && ret=0
Messages sorted by:
Reverse Date,
Date,
Thread,
Author