mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-07 11:41:16 +02:00
26 lines
606 B
Text
26 lines
606 B
Text
#compdef cu
|
|
|
|
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:'
|