]> rtime.felk.cvut.cz Git - sojka/sterm.git/blobdiff - completion.zsh
extend zsh and bash completion by newly added baudrates
[sojka/sterm.git] / completion.zsh
index b803ab95edfea8df80c97a951cdb048a3a5e8016..61348de0dc00058c15bb286f6e09dcb8deef85ec 100644 (file)
@@ -6,6 +6,7 @@ _sterm_defs() {
                "--help[Output help message]" \
                "-h[Print help text]" \
                "-s[Set baudrate]" \
+               "-b[Send break]" \
                "-c[Enter command mode]" \
                "-d[Make pulse on DTR]" \
                "-r[Make pulse on RTS]" \
@@ -19,7 +20,7 @@ _sterm() {
        if (( CURRENT > 2)); then
                local prev=${words[(( CURRENT - 1))]}
                case "${prev}" in
-                       -d|-r)
+                       -b|-d|-r)
                                # No completion for these
                                ;;
                        -s)
@@ -42,7 +43,19 @@ _sterm() {
                                        "38400" \
                                        "57600" \
                                        "115200" \
-                                       "230400"
+                                       "230400" \
+                                       "460800" \
+                                       "500000" \
+                                       "576000" \
+                                       "921600" \
+                                       "1000000" \
+                                       "1152000" \
+                                       "1500000" \
+                                       "2000000" \
+                                       "2500000" \
+                                       "3000000" \
+                                       "3500000" \
+                                       "4000000"
                                ;;
                        *)
                                _sterm_defs