about summary refs log tree commit diff
path: root/Completion/BSD/Command/_cu
blob: 90447c0af619ccb3aa233d0499e47818c3f380c5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#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:'