mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-12-08 06:21:40 +01:00
Doug Kearns: 18259: added more browsers and correct 'urls' description to 'url'
This commit is contained in:
parent
5cb11fabd0
commit
a2b2c354ff
3 changed files with 6 additions and 2 deletions
|
|
@ -1,5 +1,9 @@
|
|||
2003-02-18 Oliver Kiddle <opk@zsh.org>
|
||||
|
||||
* Doug Kearns: 18259: Completion/Unix/Command/_webbrowser,
|
||||
Completion/Unix/Type/_urls: added more browsers and correct
|
||||
'urls' description to 'url'
|
||||
|
||||
* 18257: Completion/Unix/Command/_xmllint: make use of _webbrowser
|
||||
|
||||
* Doug Kearns: 18254: Completion/Unix/Command/_xmllint: new
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
#compdef amaya arena chimera express grail gzilla hotjava mmm opera www xmosaic Mosaic galeon konqueror skipstone light dillo
|
||||
#compdef amaya arena chimera dillo express galeon grail gzilla hotjava konqueror light mmm Mosaic netrik opera phoenix retawq skipstone www xmosaic zen
|
||||
|
||||
_alternative 'files:file:_files' 'urls:url:_urls'
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ zstyle -a ":completion:${curcontext}:urls" urls urls
|
|||
|
||||
if [[ $#urls -gt 1 || ( $#urls -eq 1 && ! -d $urls[1] ) ]]; then
|
||||
[[ $#urls -eq 1 && -f $urls[1] ]] && urls=( $(< $urls[1]) )
|
||||
_wanted urls expl 'urls' compadd -a urls && return 0
|
||||
_wanted urls expl 'url' compadd -a urls && return 0
|
||||
urls=()
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue