diff options
| author | Clint Adams <clint@users.sourceforge.net> | 2006-10-07 08:58:38 +0000 |
|---|---|---|
| committer | Clint Adams <clint@users.sourceforge.net> | 2006-10-07 08:58:38 +0000 |
| commit | 8e6aabfab62367f9d8f781aa20998f1ccc9708a0 (patch) | |
| tree | 030257740fa5bbc0f6e6cb70d2ee5e01904c529a /Completion/Unix/Command | |
| parent | 22831: use CM_SPACE in compdescribe (diff) | |
| download | zsh-8e6aabfab62367f9d8f781aa20998f1ccc9708a0.tar zsh-8e6aabfab62367f9d8f781aa20998f1ccc9708a0.tar.gz zsh-8e6aabfab62367f9d8f781aa20998f1ccc9708a0.tar.bz2 zsh-8e6aabfab62367f9d8f781aa20998f1ccc9708a0.tar.lz zsh-8e6aabfab62367f9d8f781aa20998f1ccc9708a0.tar.xz zsh-8e6aabfab62367f9d8f781aa20998f1ccc9708a0.tar.zst zsh-8e6aabfab62367f9d8f781aa20998f1ccc9708a0.zip | |
22835: tidy up pon bit and add poff completion.
Diffstat (limited to 'Completion/Unix/Command')
| -rw-r--r-- | Completion/Unix/Command/_pon | 22 |
1 files changed, 19 insertions, 3 deletions
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 |
