summaryrefslogtreecommitdiffstats
path: root/Completion
diff options
context:
space:
mode:
authorOliver Kiddle <okiddle@yahoo.co.uk>2018-04-05 11:19:56 +0200
committerOliver Kiddle <okiddle@yahoo.co.uk>2018-04-05 11:29:07 +0200
commitd4c19184fed6bca78a0860193b0f7485258be2ab (patch)
treeae0cbec8a5469ab5f7f71bb60b5204670766456c /Completion
parent42575: fix to not complete options in the argument to another option (diff)
downloadzsh-d4c19184fed6bca78a0860193b0f7485258be2ab.tar
zsh-d4c19184fed6bca78a0860193b0f7485258be2ab.tar.gz
zsh-d4c19184fed6bca78a0860193b0f7485258be2ab.tar.bz2
zsh-d4c19184fed6bca78a0860193b0f7485258be2ab.tar.lz
zsh-d4c19184fed6bca78a0860193b0f7485258be2ab.tar.xz
zsh-d4c19184fed6bca78a0860193b0f7485258be2ab.tar.zst
zsh-d4c19184fed6bca78a0860193b0f7485258be2ab.zip
42582: updates to options in completions for OpenBSD 6.3
Diffstat (limited to 'Completion')
-rw-r--r--Completion/BSD/Command/_cu23
-rw-r--r--Completion/Unix/Command/_dhclient4
-rw-r--r--Completion/Unix/Command/_script6
-rw-r--r--Completion/Unix/Command/_uniq2
4 files changed, 29 insertions, 6 deletions
diff --git a/Completion/BSD/Command/_cu b/Completion/BSD/Command/_cu
index 8c0d1efef..90447c0af 100644
--- a/Completion/BSD/Command/_cu
+++ b/Completion/BSD/Command/_cu
@@ -1,7 +1,26 @@
#compdef cu
-_arguments -s -A '-*' \
- '-d[do not block waiting for a carrier to be detected]' \
+local args
+
+case $OSTYPE in
+ openbsd*)
+ args+=(
+ "-d[don't block waiting for a carrier to be detected]"
+ '-r[start cu in restricted mode - prevent local operations]'
+ )
+ ;;
+ (net|free)bsd*)
+ args+=(
+ '-a[set the acu port]:acu'
+ '(-o)-e[use even parity]'
+ '-h[echo characters locally]'
+ '(-e)-o[use odd parity]'
+ '-t[connect via a hard-wired connection to a host on a dial-up line]'
+ )
+ ;;
+esac
+
+_arguments -s -A '-*' $args \
'-l[line to use]:line:(/dev/(cuaU#<->|ttyS<->)(N%c))' \
'-s[line speed]:line speed:_baudrates' \
'(-*)1:host:'
diff --git a/Completion/Unix/Command/_dhclient b/Completion/Unix/Command/_dhclient
index b5889df21..57a5061c2 100644
--- a/Completion/Unix/Command/_dhclient
+++ b/Completion/Unix/Command/_dhclient
@@ -14,6 +14,7 @@ case $OSTYPE in
'(-d)-b[immediately move to the background]'
'-p+[specify PID file]:file:_files'
'-u[reject leases with unknown options]'
+ '-q[quiet]'
)
;;
openbsd*)
@@ -21,6 +22,7 @@ case $OSTYPE in
'-i+[ignore values provided by leases for specified options]:options'
'-L+[specify file to write option data too]:file:_files'
"-n[don't configure any interfaces]"
+ '-v[verbose log messages]'
)
;;
*) # ISC implementation, used on Linux and NetBSD
@@ -34,6 +36,7 @@ case $OSTYPE in
"-w[don't exit if there are no interfaces found to configure]"
"-n[don't configure any interfaces]"
'-e[specify env vars to pass to child processes]:env var key value pairs'
+ '-q[quiet]'
'(-x)-r[release the current lease]'
'(-r)-x[stop the running DHCP client without releaseing current lease]'
'-p[specify port to transmit to / listen on]:port:_ports'
@@ -67,6 +70,5 @@ case $OSTYPE in
esac
_arguments -s -S -A "-*" $args \