about summary refs log tree commit diff
path: root/Completion/Unix/Command/_pon
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/Unix/Command/_pon')
-rw-r--r--Completion/Unix/Command/_pon22
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