* small patches for ZSH Completion function
@ 2003-12-04 11:27 Baptiste Daroussin
2003-12-04 14:59 ` Oliver Kiddle
0 siblings, 1 reply; 3+ messages in thread
From: Baptiste Daroussin @ 2003-12-04 11:27 UTC (permalink / raw)
To: zsh-workers
[-- Attachment #1: Type: text/plain, Size: 529 bytes --]
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@ece.fr>
[-- Attachment #2: chown-zsh.patch --]
[-- Type: text/x-patch, Size: 322 bytes --]
--- _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='.'
[-- Attachment #3: links.patch --]
[-- Type: text/x-patch, Size: 1130 bytes --]
--- _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' \
[-- Attachment #4: mplayer-zsh.patch --]
[-- Type: text/x-patch, Size: 541 bytes --]
--- _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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: small patches for ZSH Completion function
2003-12-04 11:27 small patches for ZSH Completion function Baptiste Daroussin
@ 2003-12-04 14:59 ` Oliver Kiddle
2003-12-04 17:17 ` Bart Schaefer
0 siblings, 1 reply; 3+ messages in thread
From: Oliver Kiddle @ 2003-12-04 14:59 UTC (permalink / raw)
To: Baptiste Daroussin; +Cc: zsh-workers
Baptiste Daroussin wrote:
> The following patches are for :
Thanks, I've commit these.
> 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.
We probably ought to change it to make colon the default. Anyone know
what systems' chowns only work with a dot?
Oliver
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: small patches for ZSH Completion function
2003-12-04 14:59 ` Oliver Kiddle
@ 2003-12-04 17:17 ` Bart Schaefer
0 siblings, 0 replies; 3+ messages in thread
From: Bart Schaefer @ 2003-12-04 17:17 UTC (permalink / raw)
To: zsh-workers
On Dec 4, 3:59pm, Oliver Kiddle wrote:
}
} > suffix . is deprecated and in the last version of chown on my gentoo
} > does not work anymore.
}
} We probably ought to change it to make colon the default. Anyone know
} what systems' chowns only work with a dot?
Older SunOS and any mid-1990s-vintage BSD-derived system, I believe. I
can't tell you how to identify them from uname or whatever, though.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-12-04 17:17 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-04 11:27 small patches for ZSH Completion function Baptiste Daroussin
2003-12-04 14:59 ` Oliver Kiddle
2003-12-04 17:17 ` Bart Schaefer
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).