1 2 3 4
_sterm() { COMPREPLY+=($(compgen -W "9600 19200 38400 57600 115200" -- "${COMP_WORDS[COMP_CWORD]}")) } complete -F _sterm sterm