diff options
Diffstat (limited to '2018-linuxdays/examples/bash/function')
-rw-r--r-- | 2018-linuxdays/examples/bash/function | 4 |
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 |