about summary refs log tree commit diff
path: root/Completion/Linux
diff options
context:
space:
mode:
authorBart Schaefer <barts@users.sourceforge.net>2000-06-05 02:23:52 +0000
committerBart Schaefer <barts@users.sourceforge.net>2000-06-05 02:23:52 +0000
commitd1813a007f2343402d1de883403278f91da1ab53 (patch)
treed0180d0cd4c9e21c9e8a56eecfaf7413ee32854b /Completion/Linux
parentb8440550d7cfce176e1656da67fd36e25f6c9999 (diff)
downloadzsh-d1813a007f2343402d1de883403278f91da1ab53.tar.gz
zsh-d1813a007f2343402d1de883403278f91da1ab53.tar.xz
zsh-d1813a007f2343402d1de883403278f91da1ab53.zip
11743: Complete http URLs for rpm package files.
Diffstat (limited to 'Completion/Linux')
-rw-r--r--Completion/Linux/_rpm4
1 files changed, 2 insertions, 2 deletions
diff --git a/Completion/Linux/_rpm b/Completion/Linux/_rpm
index 83ad3b6e1..344f5269b 100644
--- a/Completion/Linux/_rpm
+++ b/Completion/Linux/_rpm
@@ -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)