diff options
author | Oliver Kiddle <okiddle@yahoo.co.uk> | 2018-04-05 11:19:56 +0200 |
---|---|---|
committer | Oliver Kiddle <okiddle@yahoo.co.uk> | 2018-04-05 11:29:07 +0200 |
commit | d4c19184fed6bca78a0860193b0f7485258be2ab (patch) | |
tree | ae0cbec8a5469ab5f7f71bb60b5204670766456c /Completion/BSD/Command | |
parent | 25da576c292b7ff84a34fa8aee70ff7c7d9e2ba1 (diff) | |
download | zsh-d4c19184fed6bca78a0860193b0f7485258be2ab.tar.gz zsh-d4c19184fed6bca78a0860193b0f7485258be2ab.tar.xz zsh-d4c19184fed6bca78a0860193b0f7485258be2ab.zip |
42582: updates to options in completions for OpenBSD 6.3
Diffstat (limited to 'Completion/BSD/Command')
-rw-r--r-- | Completion/BSD/Command/_cu | 23 |
1 files changed, 21 insertions, 2 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:' |