From fe8295d2d223a6c1afb247a63b3b6cec942bcaca Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Mon, 8 Oct 2001 16:22:39 +0000 Subject: update _wget for v1.7, _sysctl for darwin, _webbrowser for galeon etc (15983) --- ChangeLog | 9 ++++++++- Completion/Unix/Command/_sysctl | 4 ++-- Completion/Unix/Command/_user_admin | 2 +- Completion/Unix/Command/_webbrowser | 2 +- Completion/Unix/Command/_wget | 6 ++++++ Completion/Unix/Type/_urls | 2 +- 6 files changed, 19 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index d651c779e..1db77d491 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,8 +1,15 @@ +2001-10-08 Oliver Kiddle + + * 15983: Completion/Unix/Command/_wget, Completion/Unix/Type/_urls, + Completion/Unix/Command/_user_admin, Completion/Unix/Command/_sysctl, + Completion/Unix/Command/_webbrowser: update for wget 1.7, darwin + support in _sysctl, complete files for galeon + 2001-10-08 Peter Stephenson * 15980: Functions/Misc/zcalc: '[#16] 2000' ignored the base. - * unposted: LICENCE: wording change from ages ago. + * 15721: LICENCE: wording change from ages ago. 2001-10-08 Oliver Kiddle diff --git a/Completion/Unix/Command/_sysctl b/Completion/Unix/Command/_sysctl index bda6a5ac2..2198d1b8a 100644 --- a/Completion/Unix/Command/_sysctl +++ b/Completion/Unix/Command/_sysctl @@ -13,8 +13,8 @@ case $OSTYPE in '(-o)-x[show opaques as well (entire values)]' \ '(-a)*:sysctl variable:_multi_parts -i . sysctlvars' ;; - freebsd[0-4].*) - : ${(A)_cache_sysctlvars:=${${$(sysctl -A):#[^a-z]*}%%:*}} + freebsd[0-4].*|darwin*) + : ${(A)_cache_sysctlvars:=${${$(sysctl -A 2>/dev/null):#[^a-z]*}%%:*}} _arguments -s -A "-*" \ '(-w -X *)-a[list all]' \ '(-w -X *)-A[show all opaques (values suppressed)]' \ diff --git a/Completion/Unix/Command/_user_admin b/Completion/Unix/Command/_user_admin index 5b467ab18..bf0908372 100644 --- a/Completion/Unix/Command/_user_admin +++ b/Completion/Unix/Command/_user_admin @@ -19,7 +19,7 @@ if [[ $service = user* ]]; then '(-D)-f+[specify inactive days]:inactive days' '(-D)-g+[initial group]:initial group:_groups' '(-D)-G+[supplementary groups]:supplementary groups:_groups -S,' - "(-D)-s+[shell]:shell:( $shells /dev/null )" + "(-D)-s+[shell]:shell:( $shells /bin/false )" '(-D -M)-m[create home directory]' '(-D)-u[uid]:uid' '(-D)-o[allow non unique uid]' diff --git a/Completion/Unix/Command/_webbrowser b/Completion/Unix/Command/_webbrowser index 6a82a4e9d..b0e6b1c21 100644 --- a/Completion/Unix/Command/_webbrowser +++ b/Completion/Unix/Command/_webbrowser @@ -1,3 +1,3 @@ -#compdef amaya arena chimera express grail gzilla hotjava mmm mozilla opera www xmosaic Mosaic +#compdef amaya arena chimera express grail gzilla hotjava mmm mozilla opera www xmosaic Mosaic galeon _urls -f diff --git a/Completion/Unix/Command/_wget b/Completion/Unix/Command/_wget index eb940782d..95f2c8ade 100644 --- a/Completion/Unix/Command/_wget +++ b/Completion/Unix/Command/_wget @@ -74,6 +74,12 @@ _arguments -C -s \ '(--cache -C)'{--cache=,-C+}'[(dis)allow server-cached data]:cache:(on off)' \ '--htmlify=:htmlify:' \ '--no:no:->noflags' \ + '--cookies=[turn cookies on or off]:cookies:(on off)' \ + '--load-cookies=[specify file to load cookies from]:cookie file:_files' \ + '--save-cookies=[specify file to save cookies to]:cookie file:_files' \ + '--no-http-keep-alive[disable HTTP keep-alive]' \ + '--sslcertfile=[specify client certificate]:client certificate file:_files' \ + '--sslcertkey=[specify keyfile for certificate]:keyfile:_files' \ '*:url:_urls' && return 0 case "$state" in diff --git a/Completion/Unix/Type/_urls b/Completion/Unix/Type/_urls index 7567f362c..63ab0e7c1 100644 --- a/Completion/Unix/Type/_urls +++ b/Completion/Unix/Type/_urls @@ -1,4 +1,4 @@ -#compdef curl galeon +#compdef curl # Usage: _urls [-f] # Options: -- cgit 1.4.1