summary refs log tree commit diff
diff options
context:
space:
mode:
-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