From 8746ae9979dc8cccef856300f14f6d98b4285d5a Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Wed, 13 Oct 1999 17:50:30 +0000 Subject: zsh-workers/8231 --- Completion/User/_urls | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'Completion/User/_urls') 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 -- cgit 1.4.1