mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-09-28 15:01:21 +02:00
22795: handle https urls.
This commit is contained in:
parent
3ede15153e
commit
76a81e5393
@ -1,5 +1,8 @@
|
||||
2006-09-30 Clint Adams <clint@zsh.org>
|
||||
|
||||
* 22795: R. Ramkumar: Completion/Unix/Type/_urls:
|
||||
handle https urls.
|
||||
|
||||
* 22794: R. Ramkumar: Completion/Linux/Command/_acpitool,
|
||||
Completion/Linux/Type/_wakeup_capable_devices: completion for
|
||||
acpitool.
|
||||
|
@ -66,7 +66,7 @@ if ! compset -P '(#b)([-+.a-z0-9]#):'; then
|
||||
compset -S '[^:/]*' && compstate[to_end]=''
|
||||
[[ -d $urls/bookmark ]] &&
|
||||
compadd "$expl[@]" bookmark: && ret=0
|
||||
compadd "$expl[@]" file: ftp:// gopher:// http:// && ret=0
|
||||
compadd "$expl[@]" file: ftp:// gopher:// http:// https:// && ret=0
|
||||
done
|
||||
(( ret )) || return 0
|
||||
done
|
||||
@ -75,7 +75,7 @@ fi
|
||||
scheme="$match[1]"
|
||||
|
||||
case "$scheme" in
|
||||
http|ftp|gopher)
|
||||
http(|s)|ftp|gopher)
|
||||
if ! compset -P //; then
|
||||
_wanted -C "$scheme" prefixes expl 'end of prefix' compadd -S '' "$@" //
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user