From 7cf03a1555d46117b5f1a3d0db7c28c02498fcee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Sun, 7 Oct 2018 20:03:35 +0200 Subject: Add presentation from LinuxDays 2018 --- 2018-linuxdays/examples/zsh/real | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 2018-linuxdays/examples/zsh/real (limited to '2018-linuxdays/examples/zsh/real') diff --git a/2018-linuxdays/examples/zsh/real b/2018-linuxdays/examples/zsh/real new file mode 100644 index 0000000..7b2dce6 --- /dev/null +++ b/2018-linuxdays/examples/zsh/real @@ -0,0 +1,38 @@ +# vim: ft=zsh +_sterm_baudrate() { + _values "Baudrate" \ + "0" \ + "50" \ + "75" \ + "110" \ + "134" \ + "150" \ + "200" \ + "300" \ + "600" \ + "1200" \ + "1800" \ + "2400" \ + "4800" \ + "9600" \ + "19200" \ + "38400" \ + "57600" \ + "115200" \ + "230400" +} +_sterm() { + _arguments \ + "--help[Output help message]" \ + "-h[Print help text]" \ + "-s[Set baudrate]:baudrate:_sterm_baudrate" \ + "-b[Send break]:break:->ignore" \ + "-c[Enter command mode]" \ + "-d[Make pulse on DTR]:pulse:->ignore" \ + "-r[Make pulse on RTS]:pulse:->ignore" \ + "-e[Ignore '~.' escape sequence]" \ + "-n[Do not switch the device to raw mode]" \ + "-v[Verbose mode]" + [ "$state" = "ignore" ] || _values "tty" /dev/tty* +} +compdef _sterm sterm -- cgit v1.2.3