about summary refs log tree commit diff
path: root/Completion/User/_urls
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-10-13 17:50:30 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-10-13 17:50:30 +0000
commit8746ae9979dc8cccef856300f14f6d98b4285d5a (patch)
tree21eb594cb028f825ad5583b0a56666b2e7a076dd /Completion/User/_urls
parentad92f962259d359e561d1c0f657f6a731739b3e1 (diff)
downloadzsh-8746ae9979dc8cccef856300f14f6d98b4285d5a.tar.gz
zsh-8746ae9979dc8cccef856300f14f6d98b4285d5a.tar.xz
zsh-8746ae9979dc8cccef856300f14f6d98b4285d5a.zip
zsh-workers/8231
Diffstat (limited to 'Completion/User/_urls')
-rw-r--r--Completion/User/_urls9
1 files changed, 5 insertions, 4 deletions
diff --git a/Completion/User/_urls b/Completion/User/_urls
index 04fe934e7..c5cd41bf6 100644
--- a/Completion/User/_urls
+++ b/Completion/User/_urls
@@ -37,7 +37,7 @@
 #    name used by a user placing web pages within their home area.
 #    e.g. compconf urls_localhttp=www:/usr/local/apache/htdocs:public_html
 
-local ipre scheme host user dirs files ret=1
+local ipre scheme host user dirs files ret=1 expl
 
 if [[ "$1" = -f ]]; then
   shift
@@ -54,9 +54,10 @@ if [[ -prefix [-+.a-z0-9]#: ]]; then
   scheme="${PREFIX%%:*}"
   compset -P "[-+.a-z0-9]#:"
 else
-  [ -d $compconfig[urls_path]/bookmark ] &&
-      compadd "$@" -S '' bookmark: && ret=0
-  compadd "$@" -S '' file: ftp:// gopher:// http:// && ret=0
+  _description expl 'URL prefix'
+  [[ -d $compconfig[urls_path]/bookmark ]] &&
+      compadd "$@" "$expl[@]" -S '' bookmark: && ret=0
+  compadd "$@" "$expl[@]" -S '' file: ftp:// gopher:// http:// && ret=0
   return $ret
 fi