mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-02 22:11:54 +02:00
11743: Complete http URLs for rpm package files.
This commit is contained in:
parent
b8440550d7
commit
d1813a007f
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2000-06-04 Bart Schaefer <schaefer@zsh.org>
|
||||
|
||||
* 11743: Completion/Linux/_rpm: Complete http as well as ftp URLs
|
||||
in the package_file state.
|
||||
|
||||
2000-06-04 Chmouel Boudjnah <chmouel@mandrakesoft.com>
|
||||
|
||||
* 11740: Completion/Linux/_rpm: --{rebuild,recompile} is always
|
||||
|
|
|
@ -211,12 +211,12 @@ while [[ -n "$state" ]]; do
|
|||
_files -g \*.spec && ret=0
|
||||
;;
|
||||
package_file)
|
||||
if compset -P ftp://; then
|
||||
if compset -P '(f|ht)tp://'; then
|
||||
_hosts -S/ && ret=0
|
||||
else
|
||||
_alternative \
|
||||
'files:RPM package file:_files -g \*.\(\#i\)rpm' \
|
||||
'prefixes:ftp URL prefix:compadd ftp://' && ret=0
|
||||
'prefixes:URL prefix:compadd ftp:// http://' && ret=0
|
||||
fi
|
||||
;;
|
||||
package_src)
|
||||
|
|
Loading…
Reference in a new issue