From 8e6aabfab62367f9d8f781aa20998f1ccc9708a0 Mon Sep 17 00:00:00 2001 From: Clint Adams Date: Sat, 7 Oct 2006 08:58:38 +0000 Subject: 22835: tidy up pon bit and add poff completion. --- Completion/Unix/Command/_pon | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) (limited to 'Completion') diff --git a/Completion/Unix/Command/_pon b/Completion/Unix/Command/_pon index 860916435..ee19946c1 100644 --- a/Completion/Unix/Command/_pon +++ b/Completion/Unix/Command/_pon @@ -1,7 +1,23 @@ -#compdef pon +#compdef pon poff -provider=(/etc/ppp/peers/*(:t)) +case "$service" in + (pon) _arguments \ '(-q --quick)'{-q,--quick}'[hangs up after all ip-up scripts are run]' \ - '1:provider to call:(${provider[@]})' + '1:provider to call:_files -W /etc/ppp/peers' + + ;; + + (poff) +_arguments \ + '-r[drop the line and redial]' \ + '-d[toggle state of debug option]' \ + '-c[renegotiate compression]' \ + '-a[stop all pppds]' \ + '-h[help]' \ + '-v[version]' \ + '1:provider to disconnect:_files -W /etc/ppp/peers' + + ;; +esac -- cgit 1.4.1