about summary refs log tree commit diff
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2006-10-07 08:58:38 +0000
committerClint Adams <clint@users.sourceforge.net>2006-10-07 08:58:38 +0000
commit8e6aabfab62367f9d8f781aa20998f1ccc9708a0 (patch)
tree030257740fa5bbc0f6e6cb70d2ee5e01904c529a
parent9d8c3eb74dac80712bcb41f36407658b19ab2740 (diff)
downloadzsh-8e6aabfab62367f9d8f781aa20998f1ccc9708a0.tar.gz
zsh-8e6aabfab62367f9d8f781aa20998f1ccc9708a0.tar.xz
zsh-8e6aabfab62367f9d8f781aa20998f1ccc9708a0.zip
22835: tidy up pon bit and add poff completion.
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Unix/Command/_pon22
2 files changed, 24 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 44d0db361..3e9a7a9e7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-10-07  Clint Adams  <clint@zsh.org>
+
+	* 22835: Completion/Unix/Command/_pon: tidy up pon bit
+	and add poff completion.
+
 2006-10-07  Andrey Borzenkov <bor@zsh.org>
 
 	* 22831: Src/Zle/comp.h, Src/Zle/compresult.c, Src/Zle/computil.c:
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