From d8418f908eb7c975bd0cc617a69f53b4246b61b3 Mon Sep 17 00:00:00 2001 From: Clint Adams Date: Wed, 22 Aug 2001 21:38:28 +0000 Subject: 15683: completion for links(1) --- Completion/Unix/Command/.distfiles | 2 +- Completion/Unix/Command/_links | 31 +++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 Completion/Unix/Command/_links (limited to 'Completion') diff --git a/Completion/Unix/Command/.distfiles b/Completion/Unix/Command/.distfiles index dbab4a8fb..f5d36c126 100644 --- a/Completion/Unix/Command/.distfiles +++ b/Completion/Unix/Command/.distfiles @@ -14,5 +14,5 @@ _cvs _gnu_generic _ls _perl _tar _zip _dd _gprof _lynx _perldoc _telnet _pine _dict _grep _lzop _prcs _tiff _elm _diff _gs _make _psutils _tin _apm _mail -_loadkeys _modutils _ruby _sysctl +_loadkeys _modutils _ruby _sysctl _links ' diff --git a/Completion/Unix/Command/_links b/Completion/Unix/Command/_links new file mode 100644 index 000000000..1eb7e4d21 --- /dev/null +++ b/Completion/Unix/Command/_links @@ -0,0 +1,31 @@ +#compdef links + +local curcontext="$curcontext" state line +typeset -A opt_args + +_arguments -C \ + '-async-dns:bool:(0 1)' \ + '-max-connections:max:' \ + '-max-connections-to-host:max:' \ + '-retries:retries:' \ + '-receive-timeout:secs:' \ + '-unrestartable-receive-timeout:secs:' \ + '-format-cache-size:pages:' \ + '-memory-cache-size:kilobytes:' \ + '-http-proxy:hostport:_hosts' \ + '-ftp-proxy:hostport:_hosts' \ + '-download-dir:_files -/' \ + '-assume-codepage:codepage:' \ + '-anonymous' \ + '-dump' \ + '-no-connect' \ + '-source' \ + '-version' \ + '-help' \ + ':url:->html' && return 0 + +case "$state" in +html) + _files -g '*.html' || _urls + ;; +esac -- cgit 1.4.1