diff options
author | Karel Kočí <cynerd@email.cz> | 2018-10-07 20:03:35 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2018-10-07 20:03:35 +0200 |
commit | 7cf03a1555d46117b5f1a3d0db7c28c02498fcee (patch) | |
tree | e7ded2835880ad350fad3209ce667f469858cfed /2018-linuxdays/examples/zsh/switch | |
parent | 8958b564509b4a4a63004763d70457d3ff5e5392 (diff) | |
download | presentations-7cf03a1555d46117b5f1a3d0db7c28c02498fcee.tar.gz presentations-7cf03a1555d46117b5f1a3d0db7c28c02498fcee.tar.bz2 presentations-7cf03a1555d46117b5f1a3d0db7c28c02498fcee.zip |
Add presentation from LinuxDays 2018
Diffstat (limited to '2018-linuxdays/examples/zsh/switch')
-rw-r--r-- | 2018-linuxdays/examples/zsh/switch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/2018-linuxdays/examples/zsh/switch b/2018-linuxdays/examples/zsh/switch new file mode 100644 index 0000000..09c9b29 --- /dev/null +++ b/2018-linuxdays/examples/zsh/switch @@ -0,0 +1,15 @@ +_sterm_baudrate() { + _values "Baudrate" "9600" "19200" "115200" +} +_sterm() { + _arguments \ + "-s[Set baudrate]:baudrate:_sterm_baudrate" \ + "-b[Send break]" \ + "-c[Enter command mode]" \ + "-d[Make pulse on DTR]" \ + "-r[Make pulse on RTS]" \ + "-e[Ignore '~.' escape sequence]" \ + "-n[Do not switch the device to raw mode]" \ + "-v[Verbose mode]" +} +compdef _sterm sterm |