aboutsummaryrefslogtreecommitdiff
path: root/2018-linuxdays/examples/bash/function
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2018-10-07 20:03:35 +0200
committerKarel Kočí <cynerd@email.cz>2018-10-07 20:03:35 +0200
commit7cf03a1555d46117b5f1a3d0db7c28c02498fcee (patch)
treee7ded2835880ad350fad3209ce667f469858cfed /2018-linuxdays/examples/bash/function
parent8958b564509b4a4a63004763d70457d3ff5e5392 (diff)
downloadpresentations-7cf03a1555d46117b5f1a3d0db7c28c02498fcee.tar.gz
presentations-7cf03a1555d46117b5f1a3d0db7c28c02498fcee.tar.bz2
presentations-7cf03a1555d46117b5f1a3d0db7c28c02498fcee.zip
Add presentation from LinuxDays 2018
Diffstat (limited to '2018-linuxdays/examples/bash/function')
-rw-r--r--2018-linuxdays/examples/bash/function4
1 files changed, 4 insertions, 0 deletions
diff --git a/2018-linuxdays/examples/bash/function b/2018-linuxdays/examples/bash/function
new file mode 100644
index 0000000..ab6e5da
--- /dev/null
+++ b/2018-linuxdays/examples/bash/function
@@ -0,0 +1,4 @@
+_sterm() {
+ COMPREPLY+=($(compgen -W "9600 19200 38400 57600 115200" -- "${COMP_WORDS[COMP_CWORD]}"))
+}
+complete -F _sterm sterm